freechat/nginx-conf/ssl-params.conf
shockrah b5609febf6 Adding some basic configuration for Nginx as a reverse proxy
For now the readme walks the user through how to generate any keys that may be required for self signing, more documentation to come in following patches on origin/nginx
2021-02-11 20:22:53 -08:00

21 lines
772 B
Plaintext

ssl_protocols TLSv1 TLSV1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
ssl_ecdh_curve secp384r1;
ssl_session_cache shared:SSL:10m;
ssl_session_tickets off;
ssl_stapling on;
ssl_stapling_verify on;
resolver 8.8.8.8 8.8.4.4 valid=300s;
resolver_timeout 5s;
# Disable preloading HSTS for now. You can use the commented out header line that includes
# the "preload" directive if you understand the implications.
#add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload";
add_header Strict-Transport-Security "max-age=63072000; includeSubdomains";
add_header X-Frame-Options DENY;
add_header X-Content-Type-Options nosniff;
# literal misspelling
ssl_dhparam /etc/ssl/certs/nginx-dev.pem;