Skip to content

The FIEF_DOMAIN is not used when redirecting auth requests for the admin page. #376

Answered by frankie567
HansLarsen asked this question in Q&A
Discussion options

You must be logged in to vote

Hi 👋

Did you correctly set the FORWARDED_ALLOW_IPS environment variable on the Fief server?

The server generates absolute URL based on the incoming request. So, if the request has the host header example.com, it'll generate URL with the example.com host.

However, when behind a proxy like Nginx, the host will be the internal address (192.168.1.235:8000 in your case). For this to work, we need to trust the X-Forwarded- headers from the proxy.

Read more: https://docs.fief.dev/self-hosting/configuration/ssl/#trust-reverse-proxy-headers

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by HansLarsen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #375 on May 22, 2024 06:42.