diff --git a/docs/deployment/supported-proxies/nginx.md b/docs/deployment/supported-proxies/nginx.md index dde2815b8..e12746793 100644 --- a/docs/deployment/supported-proxies/nginx.md +++ b/docs/deployment/supported-proxies/nginx.md @@ -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.