Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
HAProxy configuration file for deploying Meteor application to private VPN. Fronted by nginx for static assets, backed by multiple app instances. See https://gist.github.com/fightingtheboss/5843323 for Nginx setup.
global
daemon
defaults
mode http
timeout connect 86400000
timeout server 86400000
timeout client 86400000
timeout check 5s
frontend pegleg 127.0.0.1:9000
mode tcp
default_backend node
tcp-request inspect-delay 500ms
tcp-request content accept if HTTP
backend node
balance roundrobin
cookie SERVERID insert nocache indirect
option forwardfor if-none
option httpchk GET /ping
no option httpclose
option http-server-close
option forceclose
server pegleg001 localhost:9001 check cookie pegleg001
server pegleg002 localhost:9002 check cookie pegleg002
server pegleg003 localhost:9003 check cookie pegleg003
listen stats 127.0.0.1:9999
mode http
timeout client 5000
timeout connect 5000
timeout server 5000
stats enable
stats hide-version
stats uri /
stats scope node
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.