From 0e165bd664081a8b58edc729ce5b570feb2b24b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Thu, 19 Jan 2023 22:32:51 +0100 Subject: [PATCH] Fix nginx configuration: Missing X-Forwarded headers... --- conf/nginx.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conf/nginx.conf b/conf/nginx.conf index 4f6842d..fd00dd5 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -2,6 +2,10 @@ location __PATH__/ { proxy_pass http://localhost:__PORT__; proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Host $host:$server_port; + proxy_set_header X-Forwarded-Port $server_port; # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc;