From 624d1b5425e4b19c861c1cd52d73bb891e0e233c Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 13 Jun 2020 21:14:23 +0100 Subject: [PATCH] Set HSTS header for nextcloud --- .../roles/intersect-docker/files/nextcloud/docker-compose.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ansible/roles/intersect-docker/files/nextcloud/docker-compose.yml b/ansible/roles/intersect-docker/files/nextcloud/docker-compose.yml index 9517e40..c48b2d0 100644 --- a/ansible/roles/intersect-docker/files/nextcloud/docker-compose.yml +++ b/ansible/roles/intersect-docker/files/nextcloud/docker-compose.yml @@ -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