From 3f8664ab17eb60abdb957b369cf426af1930c0cb Mon Sep 17 00:00:00 2001 From: Bryan Joshua Pedini Date: Wed, 14 Oct 2026 21:22:03 +0200 Subject: [PATCH] removed http router, https redirect handled by traefik --- docker-compose.yml | 13 ++++--------- env.example | 3 +-- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 1e07ddb..745070d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,15 +8,10 @@ services: ### Section Træfik - traefik.enable=${TRAEFIK_ENABLED} - traefik.docker.network=${TRAEFIK_NETWORK} - ## HTTP - - traefik.http.routers.http-${TRAEFIK_ROUTER}.entrypoints=http - # redirect to HTTPS only - - traefik.http.routers.http-${TRAEFIK_ROUTER}.middlewares=${TRAEFIK_HTTP_MIDDLEWARES} - - traefik.http.routers.http-${TRAEFIK_ROUTER}.rule=${TRAEFIK_MATCHRULE} - ## HTTPS UI + # HTTPS UI - traefik.http.routers.https-${TRAEFIK_ROUTER}.entrypoints=https # configure the exposed service - - traefik.http.routers.https-${TRAEFIK_ROUTER}.middlewares=${TRAEFIK_HTTPS_MIDDLEWARES} + - traefik.http.routers.https-${TRAEFIK_ROUTER}.middlewares=${TRAEFIK_MIDDLEWARES} - traefik.http.routers.https-${TRAEFIK_ROUTER}.rule=${TRAEFIK_MATCHRULE} # enable TLS and its certificate provider - traefik.http.routers.https-${TRAEFIK_ROUTER}.tls=${TRAEFIK_TLSENABLED} @@ -24,10 +19,10 @@ services: # specify a service so a custom port can be used - traefik.http.services.${TRAEFIK_SERVICE}.loadbalancer.server.port=${TRAEFIK_SERVICE_PORT} - traefik.http.routers.https-${TRAEFIK_ROUTER}.service=${TRAEFIK_SERVICE} - ## HTTPS Edge + # HTTPS Edge - traefik.http.routers.https-${TRAEFIK_EDGEROUTER}.entrypoints=https # configure the exposed service - - traefik.http.routers.https-${TRAEFIK_EDGEROUTER}.middlewares=${TRAEFIK_HTTPS_MIDDLEWARES} + - traefik.http.routers.https-${TRAEFIK_EDGEROUTER}.middlewares=${TRAEFIK_MIDDLEWARES} - traefik.http.routers.https-${TRAEFIK_EDGEROUTER}.rule=${TRAEFIK_EDGEMATCHRULE} # enable TLS and its certificate provider - traefik.http.routers.https-${TRAEFIK_EDGEROUTER}.tls=${TRAEFIK_TLSENABLED} diff --git a/env.example b/env.example index 610c018..feaf800 100644 --- a/env.example +++ b/env.example @@ -11,8 +11,7 @@ TRAEFIK_EDGESERVICE_PORT=8000 TRAEFIK_EDGEMATCHRULE=Host(`edge.portainer.example.com`) TRAEFIK_TLSENABLED=true TRAEFIK_CERTRESOLVER=letsencrypt -TRAEFIK_HTTP_MIDDLEWARES=http-to-https -TRAEFIK_HTTPS_MIDDLEWARES=hsts +TRAEFIK_MIDDLEWARES=hsts # Diun DIUN_ENABLE=true