added hsts middleware for enhanced security

This commit is contained in:
Bryan Joshua Pedini 2022-08-16 16:05:15 +02:00
parent 6a5f9fb8eb
commit 6abe555100
1 changed files with 1 additions and 1 deletions

View File

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