Skip to content

Instantly share code, notes, and snippets.

@brainix
Last active December 16, 2015 03:09
Show Gist options
  • Save brainix/5368315 to your computer and use it in GitHub Desktop.
Save brainix/5368315 to your computer and use it in GitHub Desktop.
RTB bidder Nginx config
# /etc/nginx/conf.d/bidder.conf
upstream unicorn {
server unix:/srv/bidder/shared/unicorn.sock fail_timeout=0;
}
server {
listen 80 default deferred;
server_name localhost bidder.crowdmob.com;
root /srv/bidder/current/public;
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://unicorn;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment