Move HSTS to reverse proxy configs and remove redundant X-Frame-Options
This commit is contained in:
parent
3d036d96e8
commit
61f3a4c088
|
@ -11,7 +11,9 @@ server {
|
|||
server_name element.*;
|
||||
|
||||
include /config/nginx/ssl.conf;
|
||||
add_header X-Frame-Options "SAMEORIGIN" always;
|
||||
|
||||
# HSTS (ngx_http_headers_module is required) (63072000 seconds)
|
||||
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always;
|
||||
|
||||
client_max_body_size 0;
|
||||
|
||||
|
|
|
@ -11,7 +11,9 @@ server {
|
|||
server_name invite.*;
|
||||
|
||||
include /config/nginx/ssl.conf;
|
||||
add_header X-Frame-Options "SAMEORIGIN" always;
|
||||
|
||||
# HSTS (ngx_http_headers_module is required) (63072000 seconds)
|
||||
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always;
|
||||
|
||||
client_max_body_size 0;
|
||||
|
||||
|
|
|
@ -12,6 +12,9 @@ server {
|
|||
|
||||
include /config/nginx/ssl.conf;
|
||||
|
||||
# HSTS (ngx_http_headers_module is required) (63072000 seconds)
|
||||
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always;
|
||||
|
||||
client_max_body_size 0;
|
||||
|
||||
# enable for ldap auth, fill in ldap details in ldap.conf
|
||||
|
|
|
@ -19,9 +19,6 @@ ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDS
|
|||
ssl_prefer_server_ciphers on;
|
||||
ssl_conf_command Options PrioritizeChaCha;
|
||||
|
||||
# HSTS (ngx_http_headers_module is required) (63072000 seconds)
|
||||
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always;
|
||||
|
||||
# OCSP stapling
|
||||
ssl_stapling on;
|
||||
ssl_stapling_verify on;
|
||||
|
|
Loading…
Reference in New Issue