Truenas and Nginx Proxy Manager doesnt work together

Hey everyone,
I´ve run into a quite annoying and weird issue with using Nginx Proxy Manager, deployed on a Docker host in another subnet.

All of my redirects and proxy hosts works perfectly fine, except for those pointing to my NAS för the apps running there. I have tried multiple apps on TrueNas (Immich, PGadmin etc.) but neither of them is redirected to the correct port on Truenas.

For Immich, I have set the port to 30041, the proxy host is configured to point to http: / / my-nas-ip:30041 + I have tried with and without SSL cert. Every attempt leads to the Truenas UI instead, just skipping the intended port redirect.

So what have I tried so far?
Enabling websockets
Confiriming both DNS name lookup from the Docker host and curl http : / / my-nas-ip:30041 with good results
I have tried another NPM instances, both as an app in TrueNas but also as a LXC container in Proxmox. All with the same result.

Any ideas? Anyone else who has seen this?
I am all out of ideas as I can´t find anything at all in the Truenas UI to point me in the right direction either.

Thanks for any input!
D

Did you change TrueNAS listening port from 80/443 to something else so that NPM could listen on 80/443?

Yeah, multiple times but made another try right now just to have it fresh from my memory.

All I get is a message saying “ERR_CONNECTION_REFUSED” so the request seems to be cut off somewhere along the way.

What is the port for the TrueNAS webui? How are you accessing the webui?

What is the port for NPM? How are you accessing NPM?

I have TrueNAS hosting NPM and a long list of services. I’m able to access TrueNAS at nas.mydomain.com, npm at npm.mydomain.com, and my other services at their own subdomains.

You´re my hero!
I found the problem, and it was that I had TrueNas listening to 80 and 443. I only changed those once I ran Nginx on the Nas itself. As soon as I switched ports for the Truenas UI, I could access both Immich and the Truenas UI through NPM.

Thanks a lot!

Glad it’s working!

Just asking, but why would that break NPM when it was on proxmox? Then NPM ports would not conflict with with truenas since they are on different IPs