The FIEF_DOMAIN is not used when redirecting auth requests for the admin page. #376
-
Describe the bugWhen fief is redirecting back from the login page, to the admin page, it uses the local ip address instead of the FIEF_DOMAIN. I'm a bit unsure if i'm doing something wrong, but this is the admin panel it comes with. To ReproduceSteps to reproduce the behavior:
Expected behaviorThe redirect would use the FIEF_DOMAIN Configuration
Additional contextDocker compose
nginx setup
FIEF_DOMAIN="auth.example.test" |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi 👋 Did you correctly set the The server generates absolute URL based on the incoming request. So, if the request has the host header However, when behind a proxy like Nginx, the host will be the internal address ( Read more: https://docs.fief.dev/self-hosting/configuration/ssl/#trust-reverse-proxy-headers |
Beta Was this translation helpful? Give feedback.
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 theexample.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 theX-Forwarded-
headers from the proxy.Read more: https://docs.fief.dev/self-hosting/configuration/ssl/#trust-reverse-proxy-headers