website/docs: fix Nginx redirection example (#12561)

Fix Nginx redirection

Signed-off-by: DanteMS <DanteMS@users.noreply.github.com>
This commit is contained in:
DanteMS
2025-01-07 04:54:25 +08:00
committed by GitHub
parent 9ce460a0ac
commit f83fab214b

View File

@ -66,7 +66,7 @@ location /outpost.goauthentik.io {
location @goauthentik_proxy_signin {
internal;
add_header Set-Cookie $auth_cookie;
return 302 /outpost.goauthentik.io/start?rd=$request_uri;
return 302 /outpost.goauthentik.io/start?rd=$scheme://$http_host$request_uri;
# For domain level, use the below error_page to redirect to your authentik server with the full redirect path
# return 302 https://authentik.company/outpost.goauthentik.io/start?rd=$scheme://$http_host$request_uri;
}