Move HSTS to reverse proxy configs and remove redundant X-Frame-Options

This commit is contained in:
Tommy 2023-04-12 07:39:40 -04:00 committed by GitHub
parent 3d036d96e8
commit 61f3a4c088
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 5 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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

View File

@ -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;