[DOCS] Harmonize Remote-User and Remote-Groups headers in nginx example (#963)
Fixes #957. Co-authored-by: Clément Michaud <clement.michaud34@gmail.com>pull/961/head^2
parent
d301ebe47c
commit
310c5dc09b
|
@ -81,8 +81,8 @@ auth_request_set $target_url $scheme://$http_host$request_uri;
|
|||
# proxy. In the future, it's gonna be safe to just use OAuth.
|
||||
auth_request_set $user $upstream_http_remote_user;
|
||||
auth_request_set $groups $upstream_http_remote_groups;
|
||||
proxy_set_header X-Forwarded-User $user;
|
||||
proxy_set_header X-Forwarded-Groups $groups;
|
||||
proxy_set_header Remote-User $user;
|
||||
proxy_set_header Remote-Groups $groups;
|
||||
# If Authelia returns 401, then nginx redirects the user to the login portal.
|
||||
# If it returns 200, then the request pass through to the backend.
|
||||
# For other type of errors, nginx will handle them as usual.
|
||||
|
|
Loading…
Reference in New Issue