Add Nextcloud HSTS header

This commit is contained in:
azalus88 2020-11-29 09:35:45 -05:00
commit 6a639a2acf
2 changed files with 2 additions and 0 deletions

View file

@ -31,5 +31,6 @@ server {
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
proxy_max_temp_file_size 2048m;
add_header Strict-Transport-Security "max-age=15552000; includeSubDomains; preload;";
}
}

View file

@ -37,4 +37,5 @@ location ^~ /nextcloud/ {
proxy_set_header If-Range $http_if_range;
proxy_redirect off;
proxy_ssl_session_reuse off;
add_header Strict-Transport-Security "max-age=15552000; includeSubDomains; preload;";
}