Marteline's picture

Hi, I am currently using turnkey 16.1 nextcloud and media server, each one in a different VM.

I would like to use both appliances in the same VM, but when I install jellyfin in nextcloud VM(apt install jellyfin) I can't manage to enable HTTPS to work on jellyfin. (the configuration in the software doesn't work (even trough local network). 

My problem using 2 different VMs is that I can't figure out how to provide a valid certificate for both appliances since I only know how to point external https requests to only one destination trough my router. (using iptables below) 

My router ip tables config:

*/1 * * * * root iptables -t nat -I PREROUTING -p tcp -d (myip) --dport 443 -j DNAT --to*

*/1 * * * * root iptables -I FORWARD -p tcp -d --dport 443 -j ACCEPT

Where is my nextcloud VM...

In my current instalation nextcloud is running flawless with a valid certificate and jellyfin runing in another vm without certificate, and I access it trough https://(nextcloud_dns):24,   where port 24 forward traffic to turnkey VM running jellyfin. 

Could you please help me figure out how to run both appliances in the same VM and with a valid let's encrypt certificate? 

Thanks a lot! 

Marteline's picture

I did some research and looks like I will need to use nginx for a reverse proxy. And of course there is a turnkey appliance for that... I will look into that...



Jeremy Davis's picture

Sorry my response is a bit slow. I've currently got my head down, working on the next major release.

Yeah, it sounds like a reverse proxy is the best way to go. As per your most recent comment, it sounds like you have it up and running. Good work on that.

FWIW, depending on your needs/desires and future plans, you could (have) reconfigure(d) one of the existing appliances to (also) act as a reverse proxy (rather than have a third/separate reverse proxy appliance). Seeing as you now have a dedicated reverse proxy, I would leave it like that now, but any webserver can also act as a reverse proxy.

Marteline's picture

Just fyi, everything running smothly!

Jeremy Davis's picture

Great work and belated welcome to TurnKey! :)

Add new comment