Files
play-with-docker/haproxy/haproxy.cfg
2017-11-29 14:23:16 -03:00

19 lines
280 B
INI

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