Skip to content

Instantly share code, notes, and snippets.

@mattwelke
Created February 14, 2018 22:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattwelke/e89ac6cc8a108e0ec26bb99d9723cc13 to your computer and use it in GitHub Desktop.
Save mattwelke/e89ac6cc8a108e0ec26bb99d9723cc13 to your computer and use it in GitHub Desktop.
NGINX Example: As wrapper around Ghost blog.
events {
worker_connections 1024;
}
http {
client_max_body_size 10m;
server {
listen 80;
listen 443 ssl;
server_name mattwelke.com;
ssl_certificate /etc/nginx/ssl/mattwelke.com.cert;
ssl_certificate_key /etc/nginx/ssl/mattwelke.com.key;
location / {
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_pass http://ghost:2368;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment