Created
November 8, 2016 06:11
-
-
Save eatgrass/e48c4f3a97c99d9331653d3e59f306a2 to your computer and use it in GitHub Desktop.
nginx.conf add ssl certificate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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