Skip to content

Instantly share code, notes, and snippets.

@mskian
Last active March 15, 2018 16:38
Show Gist options
  • Save mskian/637f8dd3be2b73b73f85c591c812e653 to your computer and use it in GitHub Desktop.
Save mskian/637f8dd3be2b73b73f85c591c812e653 to your computer and use it in GitHub Desktop.
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name www.example.com;
root /var/www/ghost/system/nginx-root;
return 301 https://example.com$request_uri;
ssl_certificate /etc/letsencrypt/www.example.com/fullchain.cer;
ssl_certificate_key /etc/letsencrypt/www.example.com/www.example.com.key;
include /etc/nginx/snippets/ssl-params.conf;
location ~ /.well-known {
allow all;
}
client_max_body_size 50m;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment