From 851b0827782c42ebbf4a56a4d64f221d91d1f1ff Mon Sep 17 00:00:00 2001 From: Bubka <858858+Bubka@users.noreply.github.com> Date: Tue, 9 May 2023 10:08:05 +0200 Subject: [PATCH] Update Customize the header name --- docs/security/authentication.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/docs/security/authentication.md b/docs/security/authentication.md index 111112e..5ea768d 100644 --- a/docs/security/authentication.md +++ b/docs/security/authentication.md @@ -122,11 +122,18 @@ If you do not have a user account yet, or if you want to be authenticated as a b ### Customize the header name -You can customize the header name by setting the `AUTH_PROXY_HEADER_FOR_USER` environment variable to match a specific proxy configuration. For example, if the proxy header is `2FAUTH-User`, then set `AUTH_PROXY_HEADER_FOR_USER` to `HTTP_2FAUTH_USER`. +You can customize the header name by setting the `AUTH_PROXY_HEADER_FOR_USER` environment variable to match a specific proxy configuration. For example, if the proxy header is `2FAUTH-User`, then set `AUTH_PROXY_HEADER_FOR_USER` as such: ```env In your .env file: # if the proxy header is '2FAUTH-User' -AUTH_PROXY_HEADER_FOR_USER=HTTP_2FAUTH_USER +AUTH_PROXY_HEADER_FOR_USER=2FAUTH-User +``` + +Some proxies may add a prefix to headers, like `HTTP_`. You have to add it to your headers name as well. + +```env In your .env file: +# if the proxy prefix is 'HTTP_' +AUTH_PROXY_HEADER_FOR_USER=HTTP_2FAUTH-User ``` ### Additional header