From 673f533643c704df0ced2fa960cc4102038a5935 Mon Sep 17 00:00:00 2001 From: Tommy Date: Sun, 13 Oct 2024 01:25:32 -0700 Subject: [PATCH] Add extra headers Signed-off-by: Tommy --- etc/nginx/snippets/proxy.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/etc/nginx/snippets/proxy.conf b/etc/nginx/snippets/proxy.conf index fd9a270..465dd50 100644 --- a/etc/nginx/snippets/proxy.conf +++ b/etc/nginx/snippets/proxy.conf @@ -13,6 +13,7 @@ proxy_set_header X-Real-IP $remote_addr; # Restore original method & URL proxy_set_header X-Original-Method $request_method; proxy_set_header X-Original-URL $scheme://$http_host$request_uri; +proxy_set_header X-Original-URI $request_uri; # Forward host header proxy_set_header Host $host; @@ -23,5 +24,7 @@ proxy_set_header Connection "upgrade"; # Enable X-Forwarded headers proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; -proxy_set_header X-Forwarded-Host $http_host; +proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Proto $scheme; +proxy_set_header X-Forwarded-Ssl on; +proxy_set_header X-Forwarded-Port $server_port;