fixed middlewares

This commit is contained in:
2026-07-18 13:02:37 +02:00
parent eefaae32e2
commit 44571ff08b
2 changed files with 2 additions and 1 deletions

View File

@@ -23,7 +23,7 @@ services:
# HTTPS
- traefik.http.routers.https-${TRAEFIK_ROUTER}.entrypoints=https
# configure the exposed service
- traefik.http.routers.https-${TRAEFIK_ROUTER}.middlewares=hsts,nextcloud-redirectregex
- traefik.http.routers.https-${TRAEFIK_ROUTER}.middlewares=${TRAEFIK_MIDDLEWARES}
- traefik.http.routers.https-${TRAEFIK_ROUTER}.rule=${TRAEFIK_MATCHRULE}
# of course, enable TLS and it's certificate provider
- traefik.http.routers.https-${TRAEFIK_ROUTER}.tls=${TRAEFIK_TLSENABLED}

View File

@@ -17,3 +17,4 @@ TRAEFIK_SERVICE=cloud_domain_com
TRAEFIK_SERVICE_PORT=80
TRAEFIK_TLSENABLED=true
TRAEFIK_NETWORK=traefik
TRAEFIK_MIDDLEWARES=hsts,cloud_domain_com-redirectregex