Skip to content

Instantly share code, notes, and snippets.

@pmgarman
Created November 26, 2013 22:41
Show Gist options
  • Save pmgarman/7667624 to your computer and use it in GitHub Desktop.
Save pmgarman/7667624 to your computer and use it in GitHub Desktop.
Reverse Proxy Nginx > Ghost w/SSL
server {
listen 80;
listen 443 ssl;
server_name dev.pmgarman.me;
root /home/pmgarman/dev.pmgarman.me;
ssl_certificate /home/pmgarman/ssl/dev.pmgarman.me/dev_pmgarman_me.selfsigned.crt;
ssl_certificate_key /home/pmgarman/ssl/dev.pmgarman.me/dev_pmgarman_me.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_redirect off;
proxy_http_version 1.1;
proxy_pass http://127.0.0.1:2368;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment