Skip to content

Instantly share code, notes, and snippets.

@eatgrass
Created November 8, 2016 06:11
Show Gist options
  • Save eatgrass/e48c4f3a97c99d9331653d3e59f306a2 to your computer and use it in GitHub Desktop.
Save eatgrass/e48c4f3a97c99d9331653d3e59f306a2 to your computer and use it in GitHub Desktop.
nginx.conf add ssl certificate
server {
listen 443;
server_name localhost;
ssl on;
ssl_certificate path/cert.pem;
ssl_certificate_key path/cert.key;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers AESGCM:ALL:!DH:!EXPORT:!RC4:+HIGH:!MEDIUM:!LOW:!aNULL:!eNULL;
ssl_prefer_server_ciphers on;
location / {
...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment