1
0
mirror of https://github.com/ArcticFoxes-net/Nitter-Docker-Compose synced 2024-12-21 22:01:33 -05:00

Move HSTS header to reverse proxy config

This commit is contained in:
Tommy 2023-04-12 07:27:17 -04:00 committed by GitHub
parent bed74e0aae
commit 4e9ecc440a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -8,6 +8,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;
location / {

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;