docs: add missing subrequest auth configuration (#463)

* 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ř <michal@weblate.org>
This commit is contained in:
Michal Čihař 2025-05-08 01:28:51 +02:00 committed by GitHub
parent 2e54e839f1
commit c633b3349e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -62,6 +62,11 @@ location /.within.website/ {
# Assumption: Anubis is running in the same network namespace as # Assumption: Anubis is running in the same network namespace as
# nginx on localhost TCP port 8923 # nginx on localhost TCP port 8923
proxy_pass http://127.0.0.1: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; auth_request off;
} }