Jellyfin Forum
Accessing Jellyfin through caddy - 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: Accessing Jellyfin through caddy (/t-accessing-jellyfin-through-caddy)



Accessing Jellyfin through caddy - schieslu - 2023-08-22

Hello everyone,

I am a bit of a newbee and I'd like to run Jellyfin on my home server in a docker container. This works great locally, but since I want it to be accessible over the internet, I set up a caddy docker container to act as reverse proxy.
I've set up my portforwarding of ports 443 and 80 in my router, and have a public domaine pointing to my private ip. When I try to access my Jellyfin Instance over the local network everything works just fine. However when I try to access it over the public domain I get redirected to this path: "https://mydomain.com/web/index.html" which shows me a white page. I am quite confused by that. The logs of the caddy container do not show any error messages and when I look up the logs of the jellyfin instance it doesnt show anything at all.

My docker compose file looks like this:

Code:
version: '3.5'
networks:
  caddy_jellyfin_network:
services:
  jellyfin:
    image: jellyfin/jellyfin
    group_add:
      - "109"
    container_name: jellyfin
    networks:
      - caddy_jellyfin_network
    ports:
      - 8096:8096
    volumes:
      - ./config:/config
      - ./cache:/cache
      - ../Media/disk1:/media/disk1
      - ../Media/disk2:/media/disk2
    devices:
      - /dev/dri/renderD128:/dev/dri/renderD128
    restart: 'unless-stopped'
  caddy:
    image: caddy
    container_name: caddy
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - /home/schieslu/Caddy/Caddyfile:/etc/caddy/Caddyfile:ro
    networks:
      - caddy_jellyfin_network
    restart: unless-stopped


and my Caddyfile like this:


Code:
mydomain.com {
        reverse_proxy / jellyfin:8096
}


Am I missing something? Any help would be appreciated