diff --git a/haproxy.conf b/haproxy.conf index 079f2de..3cda38a 100644 --- a/haproxy.conf +++ b/haproxy.conf @@ -24,6 +24,10 @@ defaults frontend http bind *:80 reqadd X-Forwarded-Proto:\ http + + # add X-Forwarded-For Header to request + http-request add-header X-Forwarded-For %[src] + acl letsencrypt-acl path_beg /.well-known/acme-challenge/ use_backend letsencrypt-backend if letsencrypt-acl default_backend www-backend