From fe75e5ff3a572edfd1faee3167a13be55c47108a Mon Sep 17 00:00:00 2001 From: Giles Bradshaw Date: Tue, 5 May 2020 12:25:19 +0100 Subject: [PATCH] . --- letsencrypt-nginx/conf/git.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/letsencrypt-nginx/conf/git.conf b/letsencrypt-nginx/conf/git.conf index 2daca6f..80c96d8 100644 --- a/letsencrypt-nginx/conf/git.conf +++ b/letsencrypt-nginx/conf/git.conf @@ -154,6 +154,11 @@ server { location ~ ${MATOMO_LOCATION}(.*) { resolver 127.0.0.11 ipv6=off valid=30s; ## internal docker dns set ${DOLLAR}upstream ${MATOMO_PROXY_PASS}${DOLLAR}1${DOLLAR}is_args${DOLLAR}args; + proxy_set_header Host ${DOLLAR}http_host; + proxy_set_header X-Real-IP ${DOLLAR}remote_addr; + proxy_set_header X-Forwarded-For ${DOLLAR}proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto ${DOLLAR}scheme; + proxy_buffering off; proxy_pass ${DOLLAR}upstream; }