I use noip.com ddns service + luci-app-ddns to point a http(s)://something.ddns.net to my nextcloud vm and that works well. I'd like to do the same for my jellyfin vm (possibly for more machines I want to access from outside my lan in future), but I've no idea how to go about that / whether it's possible. So far no matter what I tried either outright doesn't work, or opens my nextcloud complaining about being tried to access from unauthorised hostname.
Would be absolutely ideal if I could just use my existing nextcloud vm ddns hostname (which already has letsencrypt certificate) just on different port, again no idea if this is possible or how to go about it.
Any suggestion welcome, thanks!
You can use as many ports as you wish, but you must include them in the URL, like "http://my domain.com:8080/".
Or you can use some http proxy on the router, and send requests to the appropriate server depending on the URL.
I mean yeah, I got as far as this in mentally exploring this, but how exactly do I set it up in openwrt, do I set up another ddns thing, or nat or what (I'm not really that technically oriented when it comes to networking), there's no guides I could find, just people saying it's possible or that they have it set up. Only guide I found is with haproxy on pfsense. That sounds like what you said about the proxy, but is there any guide anywhere?
Basically my isp gives me random ip and i want one.ddns.net to go to my nextcloud, two.ddns.net to go to my whatever, three.ddns.net:1234 to go somewhere else etc.
You need to install tinyproxy or ngnix, then configure it as a reverse proxy, so each domain is forwarded to a different server. This is not specific to OpenWrt, there are tons of guides on the internet about this.
Then you configure all those domain names to point to your external IP address.
The gods have smiled upon me and after slogging through heaps of incomprehensible tutorials this one finally lists an example doing EXACTLY what I wanted.
Guess sometimes it pays to look past the 5th page of results
Thanks @eduperez for telling me what's what I wanted called. Had I heard term reverse proxy before not in million years it would occur to me it means hosting multiple sites from 1 ip amongst other things.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.