Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
server {
server_name jason.whitehorn.us;
listen 443 ssl;
listen [::]:443 ssl;
ssl_certificate /etc/nginx/jason.whitehorn.us.crt;
ssl_certificate_key /etc/nginx/jason.whitehorn.us.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-RC4-SHA:ECDHE-RSA-AES128-SHA:AES128-SHA:RC4-SHA;
ssl_session_cache shared:SSL:10m;
ssl_client_certificate /etc/nginx/whitehorn-ca.crt;
ssl_verify_client optional;
ssl_verify_depth 2;
add_header Strict-Transport-Security max-age=31536000;
location / {
//TODO: proxy-pass or serve static content here
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.