From c633b3349e7d50e3b19afa00c1660c7088ca2e62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 8 May 2025 01:28:51 +0200 Subject: [PATCH] docs: add missing subrequest auth configuration (#463) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * The IP address and Host should be included * The Content-Length removed to avoid Anubis waiting for the body, which is not passed because subrequest is always using GET. Signed-off-by: Michal Čihař --- docs/docs/admin/configuration/subrequest-auth.mdx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/docs/admin/configuration/subrequest-auth.mdx b/docs/docs/admin/configuration/subrequest-auth.mdx index a4bbda6..6664cac 100644 --- a/docs/docs/admin/configuration/subrequest-auth.mdx +++ b/docs/docs/admin/configuration/subrequest-auth.mdx @@ -62,6 +62,11 @@ location /.within.website/ { # Assumption: Anubis is running in the same network namespace as # nginx on localhost TCP port 8923 proxy_pass http://127.0.0.1:8923; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header Host $http_host; + proxy_pass_request_body off; + proxy_set_header content-length ""; auth_request off; }