diff options
author | terminaldweller <thabogre@gmail.com> | 2022-12-02 17:52:42 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-12-02 17:52:42 +0000 |
commit | 674f40d027ece13daa78ef2a7d69c79f4198368a (patch) | |
tree | 2bcc0e41e5064b62d18bb376a5ecf0d760b6f13d /terminaldweller.com/cargo/nginx.conf | |
parent | update (diff) | |
download | scripts-674f40d027ece13daa78ef2a7d69c79f4198368a.tar.gz scripts-674f40d027ece13daa78ef2a7d69c79f4198368a.zip |
update
Diffstat (limited to '')
-rw-r--r-- | terminaldweller.com/cargo/nginx.conf | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/terminaldweller.com/cargo/nginx.conf b/terminaldweller.com/cargo/nginx.conf index eafeeee..bec87f2 100644 --- a/terminaldweller.com/cargo/nginx.conf +++ b/terminaldweller.com/cargo/nginx.conf @@ -5,10 +5,17 @@ http { server { listen 8080 ssl http2; keepalive_timeout 70; - ssl_certificate /certs/cert1.pem; + add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; + ssl_ciphers HIGH:!aNULL:!MD5: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 on; + ssl_certificate /certs/fullchain1.pem; ssl_certificate_key /certs/privkey1.pem; ssl_protocols TLSv1.2 TLSv1.3; - ssl_ciphers HIGH:!aNULL:!MD5; + add_header Content-Security-Policy "default-src 'self';"; + add_header X-Frame-Options SAMEORIGIN always; + add_header X-Content-Type-Options "nosniff" always; + add_header X-XSS-Protection "1; mode=block" always; + add_header Referrer-Policy "no-referrer"; sendfile on; tcp_nopush on; |