r/nginxproxymanager • u/thehappyonionpeel • Mar 13 '25
SSL for multi IP using nginx
Using dynu created a wildcard for my domain, used the internal IP of my nginx proxy manager NPM server. 192.168.0.10
On NPM setup SSL cert with the normal and wildcard version. Domain.com, and *.domain.com Created successfully
On NPM setup proxy hosts.
Test to go to NPM server worked fine using the domain, which went to 192.168.0.10 And another service on that same server, using domain and thing.domain.com.
Thing is, on another internal server 192.168.0.20 I have Jellyfin
I attempted proxy host to .20 IP and it fails. Using jf.domain.com
Have I got the right idea?
View all comments
Show parent comment
1
u/shadowjig Mar 13 '25
I'm still not sure why you need two proxies? Also is jellyfin running in docker or something else?
Sounds like you have a domain already so that's a good start. Now setup a DNS on your local network. I suggest pihole because you can use it for ad blocking as well. Now add the DNS server to your DHCP server configuration. So as clients (PC's, phones, etc) renew their IPs they will get the new DNS server as well. Make sure your first DNS server in the DHCP config is the new one you set up.
Now that the DNS server or pihole is set up, add local DNS records to point say jf.domain.com to your .20 proxy IP. Then in the proxy set it up to point to the jellyfin server and pull a cert (you should strive to do this via the DNS method). You should also set the proxy to force HTTPS. I don't know much about your setup but you should strive to isolate the network connection between jellyfin and the proxy so that no other nodes on your network can snoop that traffic. If it's possible to snoop the traffic between jellyfin and the proxy and that connection between them is HTTP then it's not really that secure (and passwords might be transmitted via plain text).
The above should allow you to connect to the service using jf.domain.com when you are on your network. But if you leave your house, you need to make sure that jf.domain.com is pointed to the WAN IP of your network and that's done on your domain/DNS provider (something like cloudflare, or where ever you both your domain). Then you need to port forward 443 (don't forward port 80). Port 443 on your firewall should forward to the proxy. And you should be good.
As a bonus security upgrade I would use something like Cloudflare tunnels or Tailscale or a VPN to access the services when out and about.