From 93eb04c23c3e4ce6e00fb5850752e73b9835d4f5 Mon Sep 17 00:00:00 2001 From: Christian Galo Date: Wed, 25 Nov 2026 03:43:36 +0000 Subject: [PATCH] feat: enable HSTS in nginx Sends Strict-Transport-Security with max-age 15768000 and includeSubDomains, without preload. The swarm config is renamed to nextcloud_nginx_v2 because configs are immutable. --- compose.yaml | 2 +- nginx.conf.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compose.yaml b/compose.yaml index d576ef1..2d9218c 100644 --- a/compose.yaml +++ b/compose.yaml @@ -138,7 +138,7 @@ volumes: configs: nginx_conf: - name: ${STACK_NAME}_nginx + name: ${STACK_NAME}_nginx_v2 file: nginx.conf.tmpl template_driver: golang fpm_tune: diff --git a/nginx.conf.tmpl b/nginx.conf.tmpl index d585a3b..afc42f5 100644 --- a/nginx.conf.tmpl +++ b/nginx.conf.tmpl @@ -42,7 +42,7 @@ http { # will add the domain to a hardcoded list that is shipped # in all major browsers and getting removed from this list # could take several months. - #add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;" always; + add_header Strict-Transport-Security "max-age=15768000; includeSubDomains;" always; # set max upload size