From 33bb5803a8445e38bb6a08a03f2083dc33fff04a Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Mon, 28 Apr 2025 17:56:28 -0400 Subject: [PATCH] docs(admin/environments): update apache/nginx docs Signed-off-by: Xe Iaso --- docs/docs/admin/environments/apache.mdx | 3 ++- docs/docs/admin/environments/nginx.mdx | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/docs/admin/environments/apache.mdx b/docs/docs/admin/environments/apache.mdx index b3f9b4f..4cef942 100644 --- a/docs/docs/admin/environments/apache.mdx +++ b/docs/docs/admin/environments/apache.mdx @@ -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 # throw an "admin misconfiguration" error. 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 diff --git a/docs/docs/admin/environments/nginx.mdx b/docs/docs/admin/environments/nginx.mdx index 86970c3..619d74d 100644 --- a/docs/docs/admin/environments/nginx.mdx +++ b/docs/docs/admin/environments/nginx.mdx @@ -59,8 +59,14 @@ server { listen [::]:443 ssl http2; location / { + # Anubis needs these headers to understand the connection 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-Forwarded-Proto $scheme; + proxy_set_header X-Request-Id $request_id; + proxy_set_header X-Forwarded-Host $host; proxy_pass http://anubis; }