From 3c46100dbceec509b0d1fb23ce41f208d24ddc52 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Sun, 24 Mar 2019 16:55:20 +0100 Subject: [PATCH] Nginx: forward host and ip --- remote/nginx-snippet.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/remote/nginx-snippet.conf b/remote/nginx-snippet.conf index 44d84fb..3a30c0f 100644 --- a/remote/nginx-snippet.conf +++ b/remote/nginx-snippet.conf @@ -6,4 +6,6 @@ location /static/ { location / { proxy_pass http://copanier/; + proxy_set_header Host $host; + proxy_set_header X-Forwarded-For $remote_addr; }