outposts/proxy: add X-Forwarded-Host since Host now gets changed by the proxy
closes #2284 Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
@ -46,6 +46,12 @@ Besides these user-specific headers, some application specific headers are also
|
||||
|
||||
The authentik outpost's version.
|
||||
|
||||
### Only in proxy mode
|
||||
|
||||
- X-Forwarded-Host:
|
||||
|
||||
The original Host header sent by the client. This is set as the `Host` header is set to the host of the configured backend.
|
||||
|
||||
## HTTPS
|
||||
|
||||
The outpost listens on both 9000 for HTTP and 9443 for HTTPS.
|
||||
|
||||
@ -23,6 +23,8 @@ This release mostly removes legacy fields and features that have been deprecated
|
||||
- X-Forwarded-Preferred-Username, use `X-authentik-username`
|
||||
- X-Forwarded-User, use `X-authentik-uid`
|
||||
|
||||
The proxy now also sets the host header based on what is configured as upstream in the proxy provider. The original Host is forwarded as `X-Forwarded-Host`.
|
||||
|
||||
Additionally, the header requirements for nginx have changed. Either a `X-Original-URL` or `X-Original-URI` header are now required. See the [*Proxy provider*](../providers/proxy/forward_auth) documentation for updated snippets.
|
||||
|
||||
- API:
|
||||
|
||||
Reference in New Issue
Block a user