From 19c36d20b51f1d0920e462362447e98d194231b6 Mon Sep 17 00:00:00 2001 From: itsmesid <693151+arevindh@users.noreply.github.com> Date: Wed, 31 Aug 2022 00:49:25 +0530 Subject: [PATCH] website/docs: improve nginx examples (#3372) * website/docs: improve nginx examples Signed-off-by: itsmesid <693151+arevindh@users.noreply.github.com> * website/docs: improve nginx examples Signed-off-by: itsmesid <693151+arevindh@users.noreply.github.com> --- website/docs/providers/proxy/_nginx_proxy_manager.md | 4 ++++ website/docs/providers/proxy/_nginx_standalone.md | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/website/docs/providers/proxy/_nginx_proxy_manager.md b/website/docs/providers/proxy/_nginx_proxy_manager.md index dc5f9e01a..67eab71c9 100644 --- a/website/docs/providers/proxy/_nginx_proxy_manager.md +++ b/website/docs/providers/proxy/_nginx_proxy_manager.md @@ -20,6 +20,10 @@ location / { auth_request_set $auth_cookie $upstream_http_set_cookie; add_header Set-Cookie $auth_cookie; + # pass original hostname and url to Nginx Proxy Manager, it might be needed for some apps to work + # proxy_set_header Host $host; + # proxy_set_header X-Original-URL $scheme://$http_host$request_uri; + # translate headers from the outposts back to the actual upstream auth_request_set $authentik_username $upstream_http_x_authentik_username; auth_request_set $authentik_groups $upstream_http_x_authentik_groups; diff --git a/website/docs/providers/proxy/_nginx_standalone.md b/website/docs/providers/proxy/_nginx_standalone.md index 3860f5092..9b1b4462c 100644 --- a/website/docs/providers/proxy/_nginx_standalone.md +++ b/website/docs/providers/proxy/_nginx_standalone.md @@ -23,6 +23,10 @@ server { auth_request_set $auth_cookie $upstream_http_set_cookie; add_header Set-Cookie $auth_cookie; + # pass original hostname and url to Nginx, it might be needed for some apps to work + # proxy_set_header Host $host; + # proxy_set_header X-Original-URL $scheme://$http_host$request_uri; + # translate headers from the outposts back to the actual upstream auth_request_set $authentik_username $upstream_http_x_authentik_username; auth_request_set $authentik_groups $upstream_http_x_authentik_groups;