Set HSTS header for nextcloud
This commit is contained in:
parent
ca188ab1b4
commit
624d1b5425
1 changed files with 2 additions and 0 deletions
|
@ -23,6 +23,8 @@ services:
|
||||||
- "traefik.http.routers.nextcloud.tls.certresolver=le"
|
- "traefik.http.routers.nextcloud.tls.certresolver=le"
|
||||||
- "traefik.http.services.nextcloud-nextcloud.loadbalancer.server.port=443"
|
- "traefik.http.services.nextcloud-nextcloud.loadbalancer.server.port=443"
|
||||||
- "traefik.http.services.nextcloud-nextcloud.loadbalancer.server.scheme=https"
|
- "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:
|
db:
|
||||||
image: postgres:12-alpine
|
image: postgres:12-alpine
|
||||||
|
|
Loading…
Reference in a new issue