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

14 lines
443 B
Plaintext
Raw Permalink Normal View History

2020-10-03 02:30:41 +02: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-03 02:30:41 +02:00
use_backend %[req.hdr(host),lower,map(/usr/local/etc/haproxy/http.map)]
backend acme
server localhost 127.0.0.1:8080