diff --git a/docker-compose.yml b/docker-compose.yml index 5dd6906..cd666ba 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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} diff --git a/example.env b/example.env index c204ae8..6ded27e 100644 --- a/example.env +++ b/example.env @@ -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