#Authentik + Nginx proxy manager redirect to local IP
1 messages · Page 1 of 1 (latest)
redirect to the local IP instead of the domain after login
Authentik is going to forward the requested domain name so is the internal web server configured to respond correctly to the externally requested hostname?
If the internal web service is only set to respond to a request against the internal IP, not a hostname then going via authentik proxying ain't gonna work.
I think you need to describe your setup in more detail as currently this is really too ambiguous.
For each app:
-What hostname/IP address is requested @ authentik by the client?
-What name or IP is authentik pointed at and for which app / which hostname?
-What names / IPs are the internal services on the internal hosts configured to respond to?
-Where is the client located (network wise) / what IP address?
Thank you both for the reply,
I have for now jellyfin and airsonic advanced the problem is with airsonic.
Attached capture from NPM.
When clicking on stream.domain.com I have athentik login screen and after login I am redirected to stream.domain.com
When clicking on music0domain.com I have athentik login screen and after login I am redirected to 192.168.0.42:4477
Without authentik music.domain.com is redirected to music.domain.com
I tried just inverting the port on NPM and the problem persist with airsonic now on strem.domain.com redirecting to 192.168.0.42:4477 and music.domain.com redirect to jellyfin.
Explain what you mean by 'redirecting'
And you need to explain the IPs and hostnames in use in more detail.
What are the authentik apps pointing at hostname / IP?
What is the IP address and hostnames defined for the NPM proxy?
Not just what is NPM aiming at, what IP does the NPM proxy host have.
Draw a network diagram if possible.
The strange thing is I add few apps all works great, the only problem is when it is airsonic advanced.
Do you think it can be the problem ? I even delete my Ngnix proxy manager setting to tat a new one same thing all apps are OK but as soon as it is air-sonic after login in authentik i am at the local IP not the domain.