From b56616fcc993dbde343e6768a11e7e534d2cd03a Mon Sep 17 00:00:00 2001 From: Rulasmur Date: Fri, 23 Jun 2023 00:39:31 +0200 Subject: [PATCH] set host, X-Real-IP, and X-Forwarded-For headers (#93) --- templates/nginx.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/nginx.conf b/templates/nginx.conf index 9a97966..cd66f04 100644 --- a/templates/nginx.conf +++ b/templates/nginx.conf @@ -25,6 +25,9 @@ server { proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header Host $host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } }