From 2c26f6a911cdf6540e91415e058570ebda18d07c Mon Sep 17 00:00:00 2001 From: Maksym Pavlenko Date: Sun, 26 Nov 2017 00:14:49 -0800 Subject: [PATCH] Pass host header to upstream --- cmd/nginx/podsync.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/nginx/podsync.conf b/cmd/nginx/podsync.conf index d85fd06..306a0da 100644 --- a/cmd/nginx/podsync.conf +++ b/cmd/nginx/podsync.conf @@ -35,6 +35,9 @@ server { access_log off; + proxy_set_header Host $host; + proxy_set_header X-Forwarded-For $remote_addr; + location /download { proxy_pass http://worker; }