fix(reverse-proxy): 🐛 mv Strict-Transport-Security to location

This commit is contained in:
Collin M. Barrett 2021-01-23 16:04:27 -06:00
parent e3152e6216
commit 871c175b8a
2 changed files with 4 additions and 2 deletions

View file

@ -0,0 +1,3 @@
# https://ssl-config.mozilla.org/#server=nginx&config=intermediate&ocsp=false
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always;

View file

@ -10,9 +10,8 @@ ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
ssl_prefer_server_ciphers off;
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always;
# https://support.cloudflare.com/hc/en-us/articles/204899617-Authenticated-Origin-Pulls
ssl_client_certificate /etc/nginx/cert/cloudflare.crt;
ssl_verify_client on;
ssl_verify_client on;