forked from ccchb/ansible
13 lines
443 B
Django/Jinja
13 lines
443 B
Django/Jinja
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
|
|
|
|
use_backend %[req.hdr(host),lower,map(/usr/local/etc/haproxy/http.map)]
|
|
|
|
backend acme
|
|
server localhost 127.0.0.1:8080
|