mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-08-21 22:03:39 -07:00
Enable HTTP Strict Transport Security.
This is added for security purposes and in order to suppress the "The "Strict-Transport-Security" HTTP header is not set to at least "15552000" seconds." warning in Nextcloud's security scan.
This commit is contained in:
parent
4f0963f710
commit
a36b855715
1 changed files with 3 additions and 1 deletions
|
@ -22,6 +22,8 @@ server {
|
|||
|
||||
client_max_body_size 0;
|
||||
|
||||
add_header Strict-Transport-Security "max-age=15552000; includeSubDomains";
|
||||
|
||||
location / {
|
||||
include /config/nginx/proxy.conf;
|
||||
resolver 127.0.0.11 valid=30s;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue