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; }