Remove unsafe traefik entrypoint

This commit is contained in:
Daniel Kluge 2022-12-29 18:15:18 +01:00
parent 90881aa085
commit 08d1a18b25
2 changed files with 10 additions and 16 deletions

View File

@ -13,15 +13,12 @@ services:
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.docker.network=traefik" - "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.rule=Host(`dev.c0ntroller.de`)"
- "traefik.http.routers.website-dev.middlewares=http-to-https@file" - "traefik.http.routers.website-dev.middlewares=secHeaders@file"
- "traefik.http.routers.website-dev-secure.entrypoints=websecure" - "traefik.http.routers.website-dev.tls=true"
- "traefik.http.routers.website-dev-secure.rule=Host(`dev.c0ntroller.de`)" - "traefik.http.routers.website-dev.tls.certresolver=le"
- "traefik.http.routers.website-dev-secure.middlewares=secHeaders@file" - "traefik.http.routers.website-dev.service=website-dev"
- "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.services.website-dev.loadbalancer.server.port=3000" - "traefik.http.services.website-dev.loadbalancer.server.port=3000"
environment: environment:
- IS_DEV_ENV=true - IS_DEV_ENV=true

View File

@ -13,15 +13,12 @@ services:
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.docker.network=traefik" - "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.rule=Host(`c0ntroller.de`)"
- "traefik.http.routers.website-stable.middlewares=http-to-https@file" - "traefik.http.routers.website-stable.middlewares=secHeaders@file"
- "traefik.http.routers.website-stable-secure.entrypoints=websecure" - "traefik.http.routers.website-stable.tls=true"
- "traefik.http.routers.website-stable-secure.rule=Host(`c0ntroller.de`)" - "traefik.http.routers.website-stable.tls.certresolver=le"
- "traefik.http.routers.website-stable-secure.middlewares=secHeaders@file" - "traefik.http.routers.website-stable.service=website-stable"
- "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.services.website-stable.loadbalancer.server.port=3000" - "traefik.http.services.website-stable.loadbalancer.server.port=3000"
environment: environment:
- IS_DEV_ENV=true - IS_DEV_ENV=true