mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-08-22 14:23:48 -07:00
Add Nextcloud HSTS header
This commit is contained in:
parent
280dfffdc9
commit
6a639a2acf
2 changed files with 2 additions and 0 deletions
|
@ -31,5 +31,6 @@ server {
|
||||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||||
|
|
||||||
proxy_max_temp_file_size 2048m;
|
proxy_max_temp_file_size 2048m;
|
||||||
|
add_header Strict-Transport-Security "max-age=15552000; includeSubDomains; preload;";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,4 +37,5 @@ location ^~ /nextcloud/ {
|
||||||
proxy_set_header If-Range $http_if_range;
|
proxy_set_header If-Range $http_if_range;
|
||||||
proxy_redirect off;
|
proxy_redirect off;
|
||||||
proxy_ssl_session_reuse off;
|
proxy_ssl_session_reuse off;
|
||||||
|
add_header Strict-Transport-Security "max-age=15552000; includeSubDomains; preload;";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue