Last active
December 16, 2015 03:09
-
-
Save brainix/5368315 to your computer and use it in GitHub Desktop.
RTB bidder Nginx config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /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