Skip to content

Instantly share code, notes, and snippets.

@flashvoid
Created September 26, 2017 03:13
Show Gist options
  • Save flashvoid/a6a0ad1efae93dc43ae7328ed4a16372 to your computer and use it in GitHub Desktop.
Save flashvoid/a6a0ad1efae93dc43ae7328ed4a16372 to your computer and use it in GitHub Desktop.
server {
listen 443;
server_name localhost;
root html;
index index.html index.htm;
ssl on;
ssl_certificate cert.pem;
ssl_certificate_key cert.key;
ssl_session_timeout 5m;
ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers "HIGH:!aNULL:!MD5 or HIGH:!aNULL:!MD5:!3DES";
ssl_prefer_server_ciphers on;
location / {
try_files $uri $uri/ =404;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment