Skip to content

Instantly share code, notes, and snippets.

@songjiayang
Created July 21, 2014 14:36
Show Gist options
  • Save songjiayang/f22dfa599182d47525ef to your computer and use it in GitHub Desktop.
Save songjiayang/f22dfa599182d47525ef to your computer and use it in GitHub Desktop.
upstream shellboard_production {
server unix:/var/www/shellboard/shared/tmp/sockets/puma.sock;
}
server {
listen 80;
set $public /var/www/shellboard/current;
server_name www.shellboard.com;
location / {
root $public;
proxy_redirect off;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://shellboard_production;
}
error_page 500 502 503 504 /50x.html;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment