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

Fix Nginx redirection
This commit is contained in:
DanteMS
2025-02-12 21:11:01 +08:00
committed by GitHub
parent 3656c38aa0
commit cdc0d0a857

View File

@ -79,7 +79,7 @@ server {
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;
}