mirror of
https://github.com/TecharoHQ/anubis.git
synced 2025-08-03 09:48:08 -04:00
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:
parent
2e54e839f1
commit
c633b3349e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user