Skip to content

Instantly share code, notes, and snippets.

@matthutchinson
Created June 19, 2013 15:56
Show Gist options
  • Save matthutchinson/5815458 to your computer and use it in GitHub Desktop.
Save matthutchinson/5815458 to your computer and use it in GitHub Desktop.
server {
listen 443 ssl;
server_name housetrip.dev;
root /u/apps/housetrip/public;
index index.html index.htm;
### SSL log files ###
access_log logs/housetrip.dev-ssl-access.log;
error_log logs/housetrip.dev-ssl-error.log;
### SSL cert files ###
ssl_certificate ssl/housetrip.dev.crt;
ssl_certificate_key ssl/housetrip.dev.key;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_redirect off;
proxy_pass http://localhost:20559;
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
proxy_set_header X-Forwarded-Proto https;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment