Files
play-with-docker/haproxy/haproxy.cfg
Jonathan Leibiusky @xetorthio 53e6078cc5 WIP
2017-07-25 16:36:10 -03:00

21 lines
416 B
INI

defaults
mode http
timeout connect 5000ms
timeout client 50000ms
timeout server 50000ms
frontend http-in
bind *:8080
acl host_localhost hdr(host) localhost
acl host_direct_localhost hdr_reg(host) -i ^.*\.direct\.localhost?:?.*$
use_backend pwd if host_localhost
use_backend l2 if host_direct_localhost
backend pwd
server node1 pwd:3000
backend l2
server node2 l2:443