Skip to content

Instantly share code, notes, and snippets.

@Philmod
Created December 13, 2014 20:07
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save Philmod/356f7c161fc670e5667d to your computer and use it in GitHub Desktop.
Save Philmod/356f7c161fc670e5667d to your computer and use it in GitHub Desktop.
global
log 127.0.0.1:514 local0
defaults
mode http
log global
option httplog
option http-server-close
option dontlognull
option redispatch
option contstats
retries 3
backlog 10000
timeout client 25s
timeout connect 5s
timeout server 25s
timeout tunnel 3600s
timeout http-keep-alive 1s
timeout http-request 15s
timeout queue 30s
timeout tarpit 60s
default-server inter 3s rise 2 fall 3
option forwardfor
frontend storify_editor_frontend
bind *:3030 accept-proxy name storify_editor_frontend
maxconn 1000
default_backend storify_editor_backend
backend storify_editor_backend
timeout check 5000
option httpchk GET /status?all=1
balance source
server storifyeditor1.prod.livefyre.com storifyeditor1.prod.livefyre.com:3030 maxconn 1000 weight 10 cookie websrv1 check inter 10000 rise 1 fall 3
server storifyeditor2.prod.livefyre.com storifyeditor2.prod.livefyre.com:3030 maxconn 1000 weight 10 cookie websrv1 check inter 10000 rise 1 fall 3
@chiragpurohit71085
Copy link

HI

I am having trouble in this setup. If I keep my node part same as bind port , then haproxy is not starting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment