forked from coop-cloud/nextcloud
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:
+1
-1
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user