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.
This commit is contained in:
Christian Galo
2026-11-25 03:43:36 +00:00
parent 95e7f04cf5
commit 93eb04c23c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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:
+1 -1
View File
@@ -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