ansible/roles/haproxy/templates/http.cfg.j2

14 lines
443 B
Text
Raw Normal View History

2020-10-02 19:30:41 -05:00
frontend http
log global
bind ${BIND_V4}:80
bind ${BIND_V6}:80
http-request set-src src,ipmask(16,56)
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)]
backend acme
server localhost 127.0.0.1:8080