I’ve been struggling with setting up a Reverse Proxy for the past few days, and I’m about to throw in the towel. As simple as it sounds but in practice, it’s quite difficult to grasp. I’ve scraped all the YouTube videos that I could find, read countless threads, posts, and here I am – at a dead end.
My current setup:
- TrueNAS Scale: Dragonfish-24.04.2.5
- WebUI HTTP: 99
- WebUI HTTPS: 449
Assuming these are my IPs to the TrueNas Scale box.
- WAN IP: 102.20.144.124
- Interinal IP: 192.168.100.10
Apps:
- NextCloud (WebUI: 9001)
- Collabora
- Jellyfin (WebUI: 30013)
- Nginx-Proxy-Manager (WebUI: 30020)
Cloudfare DNS Configuration:
| Type | Name | Content | Proxy Status |
|---|---|---|---|
| CNAME | * | maindomain.me | DNS only |
| CNAME | maindomain.me | subdomain.duckdns.org | DNS only |
Duck DNS Configuration:
- subdomain.duckdns.org - IP: 102.20.144.124 (WAN IP)
Router (Ubiquiti) Configuration:
| Domain Name | Type | IP |
|---|---|---|
| nextcloud.maindomain.me | Host (A) | 192.168.100.10 |
| jellyfin.maindomain.me | Host (A) | 192.168.100.10 |
Port Forwarding:
- NPM HTTP: 80 (WAN) to 30021 (LAN)
- NPM HTTPS: 443 (WAN) to 30022 (LAN)
Nginx Configuration:
- SSL Certificates: *.subdomain.duckdns.org subdomain.duckdns.org
Proxy Hosts:
| Source | Destination | Status |
|---|---|---|
| subdomain.duckdns.org | http://192.168.100.10:30020 | Online |
| nextcloud.maindomain.me | http://192.168.100.10:9001 | Online |
| jellyfin.maindomain.me | http://192.168.100.10:30013 | Online |
I should note that prior to applying these changes, all of the containers are up and running inside TrueNAS Scale. I can access them through Port Forwarding.
The problem that I’m experiencing is that only one of the 3 apps sort of works. I can go to the jellyfin.maindomain.me by clicking host inside the NPM interface; however, I get the “Not Secure” certificate. It’s also insecure when connecting to the host outside of my network. My understanding is that when I access the maindomain.me, it should route to subdomain.duckdns.org with the signed SSL certificate but somehow it didn’t.
As for accessing nextcloud or the NPM host, I just get the “This site can’t be reached”. I tried nextcloud.subdomain.duckdns.org, jellyfin.subdomain.duckdns.org, and just subdomain.duckdns.org and it will show me a page that says “Congratulations. I’ve successfully started the NPM but [I’m] trying to access a host that isn’t setup yet…”
I’m not sure what else to do at this point. I already tried clicking mindlessly as shown in those tutorial videos but without success. Any help is greatly appreciated!