mirror of
https://github.com/TecharoHQ/anubis.git
synced 2025-09-17 00:33:54 -04:00
docs(admin/environments): update apache/nginx docs
Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
parent
ada7b3a179
commit
33bb5803a8
@ -91,7 +91,8 @@ Assuming you are protecting `anubistest.techaro.lol`, you need the following ser
|
|||||||
# These headers need to be set or else Anubis will
|
# These headers need to be set or else Anubis will
|
||||||
# throw an "admin misconfiguration" error.
|
# throw an "admin misconfiguration" error.
|
||||||
RequestHeader set "X-Real-Ip" expr=%{REMOTE_ADDR}
|
RequestHeader set "X-Real-Ip" expr=%{REMOTE_ADDR}
|
||||||
RequestHeader set X-Forwarded-Proto "https"
|
RequestHeader set "X-Forwarded-Proto" "https"
|
||||||
|
RequestHeader set "X-Http-Version" "%{SERVER_PROTOCOL}s"
|
||||||
|
|
||||||
ProxyPreserveHost On
|
ProxyPreserveHost On
|
||||||
|
|
||||||
|
@ -59,8 +59,14 @@ server {
|
|||||||
listen [::]:443 ssl http2;
|
listen [::]:443 ssl http2;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
# Anubis needs these headers to understand the connection
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Http-Version $server_protocol;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
proxy_set_header X-Request-Id $request_id;
|
||||||
|
proxy_set_header X-Forwarded-Host $host;
|
||||||
proxy_pass http://anubis;
|
proxy_pass http://anubis;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user