2020-10-02 19:30:41 -05:00
|
|
|
frontend http
|
|
|
|
log global
|
|
|
|
bind ${BIND_V4}:80
|
|
|
|
bind ${BIND_V6}:80
|
2020-10-02 21:00:30 -05:00
|
|
|
http-request set-src src,ipmask(16,56)
|
|
|
|
|
2020-10-21 09:10:23 -05:00
|
|
|
acl acme_acl path_beg /.well-known/acme-challenge/ AND req.hdr(host) -m str /{{ ansible_fqdn }}/
|
|
|
|
use_backend acme if acme_acl
|
|
|
|
|
2020-10-02 19:30:41 -05:00
|
|
|
use_backend %[req.hdr(host),lower,map(/usr/local/etc/haproxy/http.map)]
|
|
|
|
|
2020-10-21 09:10:23 -05:00
|
|
|
backend acme
|
|
|
|
server localhost 127.0.0.1:8080
|