Created
April 29, 2012 15:35
-
-
Save calston/2551327 to your computer and use it in GitHub Desktop.
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
--- HA Proxy config --- | |
frontend zero-http-in | |
bind *:8040 | |
default_backend zero-backend | |
backend zero-backend | |
server zero_backend1 127.0.0.1:8041 weight 1 check maxconn 500 | |
server zero_backend2 127.0.0.1:8042 weight 1 check maxconn 500 | |
server zero_backend3 127.0.0.1:8043 weight 1 check maxconn 500 | |
server zero_backend4 127.0.0.1:8044 weight 1 check maxconn 500 | |
--- nginx --- | |
upstream haproxy_yal_zero { | |
server 127.0.0.1:8040; | |
} | |
server { | |
listen 80; | |
server_name qa.zero.yal.praekeltfoundation.org; | |
access_log /var/log/nginx/qa.zero.yal.access.log; | |
location /static { | |
root /var/praekelt/yal-zero/yal; | |
} | |
location / { | |
client_max_body_size 150m; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header Host $http_host; | |
proxy_pass http://haproxy_yal_zero; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment