Created
June 21, 2016 12:35
-
-
Save nakomis/b216e877bcea206a3c5ad782c195df9c to your computer and use it in GitHub Desktop.
nginx configuration for Brooklyn HA
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
pid /tmp/brooklyn-martin/apps/eGdtLetP/entities/NginxController_clMHkWED/logs/nginx.pid; | |
events { | |
worker_connections 8196; | |
} | |
http { | |
upstream brooklyn { | |
server 127.0.0.1:8081 fail_timeout=5s max_fails=3; | |
server 127.0.0.1:8082 backup; | |
} | |
server { | |
location / { | |
proxy_pass http://brooklyn; | |
proxy_redirect off; | |
proxy_next_upstream timeout; | |
proxy_connect_timeout 15s; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
} | |
listen 8000; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment