Fix Authelia forward-auth: use set instead of auth_request_set for redirect URL
auth_request_set reads variables from the auth subrequest context where $scheme/$http_host/$request_uri are empty, causing a 500 instead of a 302 redirect. Using set captures from the main request context. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
64bd0b8f0b
commit
09d24eecf3
1 changed files with 1 additions and 1 deletions
|
|
@ -3,8 +3,8 @@
|
|||
let
|
||||
# Authelia forward-auth snippet injected into protected locations
|
||||
autheliaAuthConfig = ''
|
||||
set $target_url $scheme://$http_host$request_uri;
|
||||
auth_request /internal/authelia/authz;
|
||||
auth_request_set $target_url $scheme://$http_host$request_uri;
|
||||
auth_request_set $user $upstream_http_remote_user;
|
||||
auth_request_set $groups $upstream_http_remote_groups;
|
||||
error_page 401 =302 https://auth.nordhammer.it/?rd=$target_url;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue