Skip to content

Instantly share code, notes, and snippets.

@jwhitehorn
Created January 20, 2019 10:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jwhitehorn/012458853e8b994b4bb73d39da772a5b to your computer and use it in GitHub Desktop.
Save jwhitehorn/012458853e8b994b4bb73d39da772a5b to your computer and use it in GitHub Desktop.
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