diff --git a/haproxy.cfg b/haproxy.cfg index 01b666b..5fe431e 100644 --- a/haproxy.cfg +++ b/haproxy.cfg @@ -1,5 +1,5 @@ global - log /dev/log local0 debug + log stdout format raw local0 debug daemon lua-load config.lua lua-load acme.lua @@ -13,7 +13,7 @@ defaults timeout server 10s listen http - bind *:5002 + bind *:80 http-request use-service lua.acme if { path_beg /.well-known/acme-challenge/ } listen acme @@ -22,6 +22,5 @@ listen acme listen acme-ca bind 127.0.0.1:9012 - # server ca acme-v02.api.letsencrypt.org:443 ssl verify none - server ca 127.0.0.1:4431 ssl verify none + server ca acme-v02.api.letsencrypt.org:443 ssl verify none http-request set-header Host acme-v02.api.letsencrypt.org