Skip to content

Instantly share code, notes, and snippets.

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 for Nginx setup.
mode http
timeout connect 86400000
timeout server 86400000
timeout client 86400000
timeout check 5s
frontend pegleg
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
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.