Marteline's picture

Nextcloud + media server(jellyfin) in the same VM

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 192.168.0.107:443*

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

Where 192.168.0.107 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! 

Forum: