From 08d1a18b253daf1497f2d693ae9cc7fc369199bc Mon Sep 17 00:00:00 2001 From: Daniel Kluge Date: Thu, 29 Dec 2022 18:15:18 +0100 Subject: [PATCH] Remove unsafe traefik entrypoint --- docker-compose.dev.yml | 13 +++++-------- docker-compose.stable.yml | 13 +++++-------- 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index da3acb1..4139626 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -13,15 +13,12 @@ services: labels: - "traefik.enable=true" - "traefik.docker.network=traefik" - - "traefik.http.routers.website-dev.entrypoints=web" + - "traefik.http.routers.website-dev.entrypoints=websecure" - "traefik.http.routers.website-dev.rule=Host(`dev.c0ntroller.de`)" - - "traefik.http.routers.website-dev.middlewares=http-to-https@file" - - "traefik.http.routers.website-dev-secure.entrypoints=websecure" - - "traefik.http.routers.website-dev-secure.rule=Host(`dev.c0ntroller.de`)" - - "traefik.http.routers.website-dev-secure.middlewares=secHeaders@file" - - "traefik.http.routers.website-dev-secure.tls=true" - - "traefik.http.routers.website-dev-secure.tls.certresolver=le" - - "traefik.http.routers.website-dev-secure.service=website-dev" + - "traefik.http.routers.website-dev.middlewares=secHeaders@file" + - "traefik.http.routers.website-dev.tls=true" + - "traefik.http.routers.website-dev.tls.certresolver=le" + - "traefik.http.routers.website-dev.service=website-dev" - "traefik.http.services.website-dev.loadbalancer.server.port=3000" environment: - IS_DEV_ENV=true diff --git a/docker-compose.stable.yml b/docker-compose.stable.yml index d567e49..b088d9c 100644 --- a/docker-compose.stable.yml +++ b/docker-compose.stable.yml @@ -13,15 +13,12 @@ services: labels: - "traefik.enable=true" - "traefik.docker.network=traefik" - - "traefik.http.routers.website-stable.entrypoints=web" + - "traefik.http.routers.website-stable.entrypoints=websecure" - "traefik.http.routers.website-stable.rule=Host(`c0ntroller.de`)" - - "traefik.http.routers.website-stable.middlewares=http-to-https@file" - - "traefik.http.routers.website-stable-secure.entrypoints=websecure" - - "traefik.http.routers.website-stable-secure.rule=Host(`c0ntroller.de`)" - - "traefik.http.routers.website-stable-secure.middlewares=secHeaders@file" - - "traefik.http.routers.website-stable-secure.tls=true" - - "traefik.http.routers.website-stable-secure.tls.certresolver=le" - - "traefik.http.routers.website-stable-secure.service=website-stable" + - "traefik.http.routers.website-stable.middlewares=secHeaders@file" + - "traefik.http.routers.website-stable.tls=true" + - "traefik.http.routers.website-stable.tls.certresolver=le" + - "traefik.http.routers.website-stable.service=website-stable" - "traefik.http.services.website-stable.loadbalancer.server.port=3000" environment: - IS_DEV_ENV=true