Set HSTS header for nextcloud

This commit is contained in:
Jake Howard 2020-06-13 21:14:23 +01:00
parent ca188ab1b4
commit 624d1b5425
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -23,6 +23,8 @@ services:
- "traefik.http.routers.nextcloud.tls.certresolver=le"
- "traefik.http.services.nextcloud-nextcloud.loadbalancer.server.port=443"
- "traefik.http.services.nextcloud-nextcloud.loadbalancer.server.scheme=https"
- "traefik.http.middlewares.nextcloud-hsts.headers.stsseconds=15552000"
- "traefik.http.routers.nextcloud.middlewares=nextcloud-hsts@docker"
db:
image: postgres:12-alpine