add X-Forwarded-For Header to request

This commit is contained in:
Joachim Lusiardi 2016-12-29 19:15:45 +01:00
parent f4f6ade0a4
commit 2a1740446a

View File

@ -24,6 +24,10 @@ defaults
frontend http frontend http
bind *:80 bind *:80
reqadd X-Forwarded-Proto:\ http 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/ acl letsencrypt-acl path_beg /.well-known/acme-challenge/
use_backend letsencrypt-backend if letsencrypt-acl use_backend letsencrypt-backend if letsencrypt-acl
default_backend www-backend default_backend www-backend