Last active
May 23, 2018 20:53
-
-
Save robotnealan/84c8fbe1956244bd2f57c7f0ac7715ab to your computer and use it in GitHub Desktop.
Archived Version of Nginx Config for Ghost
This file contains hidden or 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 80; | |
server_name yourdomain.com www.yourdomain.com; | |
location ~ ^/.well-known { | |
root /var/www/ghost; | |
} | |
location / { | |
return 301 https://$server_name$request_uri; | |
} | |
} | |
#server { | |
# listen 80; | |
# server_name yourdomain.com www.yourdomain.com; | |
# return 301 https://yourdomain.com$request_uri; | |
#} | |
#server { | |
# listen 443 ssl; | |
# server_name www.yourdomain.com; | |
# return 301 $scheme://yourdomain.com$request_uri; | |
# ssl on; | |
# ssl_certificate /etc/letsencrypt/live/yourdomain.com/fullchain.pem; | |
# ssl_certificate_key /etc/letsencrypt/live/yourdomain.com/privkey.pem; | |
# ssl_prefer_server_ciphers On; | |
# ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
# ssl_ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS; | |
#} | |
#server { | |
# listen 443 ssl; | |
# server_name yourdomain.com; | |
# root /var/www/ghost; | |
# index index.html index.htm; | |
# client_max_body_size 10G; | |
# location / { | |
# proxy_pass http://localhost:2368; | |
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
# proxy_set_header Host $http_host; | |
# proxy_set_header X-Forwarded-Proto $scheme; | |
# proxy_buffering off; | |
# } | |
# ssl on; | |
# ssl_certificate /etc/letsencrypt/live/yourdomain.com/fullchain.pem; | |
# ssl_certificate_key /etc/letsencrypt/live/yourdomain.com/privkey.pem; | |
# ssl_prefer_server_ciphers On; | |
# ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
# ssl_ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS; | |
# location ~ ^/.well-known { | |
# root /var/www; | |
# } | |
#} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is an archived version of my recommended Nginx/Ghost/DigitalOcean config file. For the latest version of this Gist please view https://gist.github.com/robertnealan/891fe8cf3b7541e922e3b39e9ae9fd96