Skip to content

Instantly share code, notes, and snippets.

@wlonkly
Last active June 5, 2017 19:44
Show Gist options
  • Save wlonkly/cfb34a9c793dc72040d68162d56436a7 to your computer and use it in GitHub Desktop.
Save wlonkly/cfb34a9c793dc72040d68162d56436a7 to your computer and use it in GitHub Desktop.
haproxy.cfg for nomad
#NOMAD_IP_rsyslogd_syslog=127.0.0.1
#NOMAD_JOB_NAME=haproxy-rsyslog
#NOMAD_ADDR_rsyslogd_syslog=127.0.0.1:56254
#NOMAD_ALLOC_NAME=haproxy-rsyslog.app[0]
#NOMAD_PORT_rsyslogd_syslog=56254
global
log ${NOMAD_ADDR_rsyslogd_syslog} local0
maxconn 4096
pidfile /var/run/haproxy.pid
defaults
mode http
retries 3
option redispatch
maxconn 2000
timeout connect 5000ms
timeout client 50000ms
timeout server 50000ms
listen WEB-PRIV
log global
bind *:8080
mode tcp
balance roundrobin
option tcplog
server web1 www.google.com:80 check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment