Skip to content

Instantly share code, notes, and snippets.

@AlexanderKozhevin
Created July 11, 2017 08:31
Show Gist options
  • Save AlexanderKozhevin/c3659f6479a436e6f9deed14b2d0eee9 to your computer and use it in GitHub Desktop.
Save AlexanderKozhevin/c3659f6479a436e6f9deed14b2d0eee9 to your computer and use it in GitHub Desktop.
server {
listen 443 ssl;
server_name hypergraph.cc www.hypergraph.cc;
ssl_certificate /etc/letsencrypt/live/app.hypergraph.cc/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/app.hypergraph.cc/privkey.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
root /usr/share/nginx/html;
index index.html index.htm;
error_page 404 /404.html;
}
server {
listen 80;
server_name hypergraph.cc;
return 301 https://$host$request_uri;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment