paulbsd-salt/states/nginx/templates/ssl_params.j2
Paul b21f0b87f7
All checks were successful
continuous-integration/drone/push Build is passing
updated nginx state
2024-07-07 22:56:18 +02:00

22 lines
684 B
Django/Jinja

## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload";
add_header X-Content-Type-Options nosniff;
add_header X-Frame-Options DENY;
add_header X-XSS-Protection "1; mode=block";
resolver_timeout 5s;
ssl_certificate /etc/acme/certs/paulbsd.com.crt;
ssl_certificate_key /etc/acme/keys/paulbsd.com.key;
ssl_ciphers EECDH+AESGCM:EECDH+CHACHA20;
ssl_dhparam /etc/acme/dh/dh.pem;
ssl_ecdh_curve secp384r1;
ssl_prefer_server_ciphers on;
ssl_protocols TLSv1.3 TLSv1.2;
ssl_session_cache shared:SSL:10m;
ssl_session_tickets off;
ssl_session_timeout 5m;
ssl_stapling on;
ssl_stapling_verify on;