Activated Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;" always for Nextcloud

This commit is contained in:
Kevin Veen-Birkenbach 2025-06-20 10:23:37 +02:00
parent 716c1c40e9
commit 68287c3c66
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E
2 changed files with 4 additions and 4 deletions

View File

@ -49,7 +49,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; preload;" always;
# set max upload size
client_max_body_size 512M;

View File

@ -12,9 +12,9 @@ server
location /
{
alias {{nginx.directories.data.files}}; {# Path to your file directory #}
autoindex on; {# Enable directory listing #}
autoindex_exact_size off; {# Display sizes in a human-readable format #}
autoindex_localtime on; {# Show local time #}
autoindex on; {# Enable directory listing #}
autoindex_exact_size off; {# Display sizes in a human-readable format #}
autoindex_localtime on; {# Show local time #}
}
location /.well-known/ {