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
1 changed files with 5 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue