Jellyfin Forum
Error using Caddy/ reverse proxy - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+---- Forum: Networking & Access (https://forum.jellyfin.org/f-networking-access)
+---- Thread: Error using Caddy/ reverse proxy (/t-error-using-caddy-reverse-proxy)



Error using Caddy/ reverse proxy - hellermyotomy - 2024-02-21

Hi, 

I’m using docker on debian 12 server. 

Running latest version of jellyfin of port 8099 (mapped to internal port 8096. I can access it via http://externalip:8099 and it works fine. Remote access enabled. 

Caddyfile had the following: 

}

jellyfin.domain.com {
    reverse_proxy jellyfin:8099

When I trying to access using https://jellyfin.domain.com I only get a white screen. 

My other docker containers such as plex etc are accessible on the custom domains using the exact same method. 

Any help would be appreciated thanks.


RE: Error using Caddy/ reverse proxy - TheDreadPirate - 2024-02-21

Is your DNS setup to resolve "jellyfin" internally? What happens when you put in the LAN IP or "localhost" instead?


RE: Error using Caddy/ reverse proxy - hellermyotomy - 2024-02-22

(2024-02-21, 06:09 PM)TheDreadPirate Wrote: Is your DNS setup to resolve "jellyfin" internally?  What happens when you put in the LAN IP or "localhost" instead?

Do you mean adding an A record the points my domain to the server DNS? I’ve done this. Also, it does not work with IP or localhost either.


RE: Error using Caddy/ reverse proxy - TheDreadPirate - 2024-02-22

Are you using a wildcard cert? If not, does your cert include jellyfin?


RE: Error using Caddy/ reverse proxy - hellermyotomy - 2024-02-23

(2024-02-22, 05:02 PM)TheDreadPirate Wrote: Are you using a wildcard cert?  If not, does your cert include jellyfin?

Normally I don’t do anything else apart from point the domain name towards my IP and then add the above text to my Caddyfile and everything works. It’s only Jellyfin that won’t work and just gives a blank screen. Jellyfin is also reachable via ip:port so I’m not sure if it’s something within Jellyfin settings that I need to amend. Remote server is enabled.


RE: Error using Caddy/ reverse proxy - TheDreadPirate - 2024-02-23

I'm not too familiar with Caddy. It really should be as simple as typing in http://jellyfin.domain.tld (no port 8099) in your browser, and having caddy proxy to Jellyfin port 8099.

I found these Caddy forum posts that are very similar to yours.

https://caddy.community/t/reverse-proxy-gives-a-blank-screen/13303
https://caddy.community/t/blank-page-loads-when-using-as-a-reverse-proxy/15176

Also, since you are using caddy, you should turn OFF port forwarding on port 8099 so that your Jellyfin server is not directly exposed to the Internet.