Skip to content

Instantly share code, notes, and snippets.

@dukelion
Created January 6, 2016 08:48
Show Gist options
  • Save dukelion/783368a38ba31b6d1206 to your computer and use it in GitHub Desktop.
Save dukelion/783368a38ba31b6d1206 to your computer and use it in GitHub Desktop.
listen 443 ssl;
ssl on;
ssl_certificate /etc/letsencrypt/live/wiki.iron.io/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/wiki.iron.io/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/wiki.iron.io/fullchain.pem;
ssl_dhparam /etc/ssl/private/dhparam.key;
ssl_session_timeout 24h;
ssl_session_cache shared:SSL:10m;
ssl_stapling on;
ssl_stapling_verify on;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers kEECDH+AES128:kEECDH:kEDH:-3DES:kRSA+AES128:kEDH+3DES:DES-CBC3-SHA:!RC4:!aNULL:!eNULL:!MD5:!EXPORT:!LOW:!SEED:!CAMELLIA:!IDEA:!PSK:!SRP:!SSLv2;
ssl_prefer_server_ciphers on;
server_name wiki.iron.io;
location /{
root /var/www;
try_files $uri @tomcat;
# add_header Strict-Transport-Security "max-age=31536000; includeSubdomains;";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment