From 2a1740446a2ac39691b48d1a2ce31b859859adb0 Mon Sep 17 00:00:00 2001 From: Joachim Lusiardi Date: Thu, 29 Dec 2016 19:15:45 +0100 Subject: [PATCH] add X-Forwarded-For Header to request --- haproxy.conf | 4 ++++ 1 file changed, 4 insertions(+) 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