2024-11-22, 05:03 PM
(This post was last modified: 2024-11-22, 05:05 PM by aeternalis. Edited 1 time in total.)
Hello. I gotta say that I'm very new to anything networking. it's possible I am missing something very obvious. I've tried a few tutorials and can't seem to find a solution that actually works.
My setup is an entire machine dedicated to running the jellyfin server directly plugged into my home network running Ubuntu Server headless. I use SSH to connect to it and do configuration. When outside the network, I connect to jellyfin by using my public IP with port 8096.
I'm trying to set up a reverse proxy so that the connections are over https and so that I can just point my device to a URL instead of an IP address if I'm using my server outside of home.
I've purchased a domain off namecheap and am trying to use cloudflare as my dns. On cloudflare, I have my "A" dns record set up to point to "jellyfin.domain.com" and pointed that to the machine's public IP. I cannot attempt to point it to the 8096 port, as cloudflare just complains that it's not a valid IPv4 address.
My caddyfile is set up as below:
This is the only uncommented portion of my caddyfile. I've tried different variations of this, including:
1. Replacing just domain.com in the "my domain" field with jellyfin.mydomain.com.
2. Replacing "machine's local IP:8096 to localhost, localhost:8096, the public IP with and without port.
No combinations have resulted in success. I left this issue for a couple weeks but coming back to it, I'm having the same issues after about an hour of troubleshooting on top of the time before today. I have verified that the caddy service is running on the machine. I've googled a good bit, and nothing I can find seems to work either or offer troubleshooting steps.
Many thanks for help.
My setup is an entire machine dedicated to running the jellyfin server directly plugged into my home network running Ubuntu Server headless. I use SSH to connect to it and do configuration. When outside the network, I connect to jellyfin by using my public IP with port 8096.
I'm trying to set up a reverse proxy so that the connections are over https and so that I can just point my device to a URL instead of an IP address if I'm using my server outside of home.
I've purchased a domain off namecheap and am trying to use cloudflare as my dns. On cloudflare, I have my "A" dns record set up to point to "jellyfin.domain.com" and pointed that to the machine's public IP. I cannot attempt to point it to the 8096 port, as cloudflare just complains that it's not a valid IPv4 address.
My caddyfile is set up as below:
Code:
(my domain) {
reverse_proxy (machine's local IP:8096)
}
This is the only uncommented portion of my caddyfile. I've tried different variations of this, including:
1. Replacing just domain.com in the "my domain" field with jellyfin.mydomain.com.
2. Replacing "machine's local IP:8096 to localhost, localhost:8096, the public IP with and without port.
No combinations have resulted in success. I left this issue for a couple weeks but coming back to it, I'm having the same issues after about an hour of troubleshooting on top of the time before today. I have verified that the caddy service is running on the machine. I've googled a good bit, and nothing I can find seems to work either or offer troubleshooting steps.
Many thanks for help.