Jellyfin Forum
Traefik rev proxy doesnt work - 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: Traefik rev proxy doesnt work (/t-traefik-rev-proxy-doesnt-work)



Traefik rev proxy doesnt work - dinth - 2025-05-24

Hiya. Recently i have migrated JF from docker standalone to docker compose and at the same time my rev proxy from SWAG to Traefik.
Unfortunately, yesterday i have noticed that my JF instance is not accessible via rev proxy, the only thing i get is "Select server" page with "No servers have been found using the automatic server discovery." message.
I have started troubleshooting it and i have noticed 
Code:
curl -v 10.10.1.13:8096/System/Info/Public
*  Trying 10.10.1.13:8096...
* Connected to 10.10.1.13 (10.10.1.13) port 8096 (#0)
> GET /System/Info/Public HTTP/1.1
> Host: 10.10.1.13:8096
> User-Agent: curl/7.88.1
> Accept: */*
>
< HTTP/1.1 200 OK
< Content-Type: application/json; charset=utf-8
< Date: Sat, 24 May 2025 09:32:42 GMT
< Server: Kestrel
< Transfer-Encoding: chunked
< X-Response-Time-ms: 0.366
But when i try to do the same on traefik container (or any other container within the docker network) i am getting 503 errors. The only thing i can curl to from traefik container side is /web

This is how my jellyfin settings look like:
https://cdn.discordapp.com/attachments/773650260903591946/1375699077320151100/Screenshot_from_2025-05-24_05-56-25.png?ex=6832a31b&is=6831519b&hm=a6f29c7fffd00a8dd2d3046610442a51a07d20f5b2d67301d5f9409a1b20ffb4&
https://cdn.discordapp.com/attachments/773650260903591946/1375699077903290378/Screenshot_from_2025-05-24_05-56-38.png?ex=6832a31b&is=6831519b&hm=20fc4b362b818240abe8e4bf3b67190fcda133ff442fa4ed1f47adc3ed016591&

and here is my compose:
Code:
services:
  jellyfin:
    cap_add:
      - AUDIT_WRITE
      - CHOWN
      - DAC_OVERRIDE
      - FOWNER
      - FSETID
      - KILL
      - MKNOD
      - NET_BIND_SERVICE
      - NET_RAW
      - SETFCAP
      - SETGID
      - SETPCAP
      - SETUID
      - SYS_CHROOT
    cap_drop:
      - ALL
    container_name: jellyfin
    entrypoint: ['/init']
    environment:
      TZ: "${TZ}"
      PUID: "${MEDIA_PUID}"
      PGID: "${MEDIA_PGID}"
    hostname: jellyfin
    image: linuxserver/jellyfin:latest
    ipc: private
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: all
              capabilities: [video]
    logging:
      driver: json-file
      options:
        max-size: "10m"
        max-file: "3"
    networks:
      - jellyfin
      - traefik
    ports:
      - 1900:1900/udp
      - 7359:7359/udp
      - 8096:8096/tcp
      - 8920:8920/tcp
    labels: 
      traefik.enable: "true"
      traefik.http.routers.jellyfin.rule: "Host(`jf.${DOMAIN_NAME}`)"
      traefik.http.routers.jellyfin.entrypoints: "websecure"
      traefik.http.routers.jellyfin.tls: "true"
      traefik.http.routers.jellyfin.tls.certresolver: "letsencrypt"
      traefik.http.routers.jellyfin.middlewares: "jellyfin-mw"
      traefik.http.services.jellyfin.loadbalancer.server.port: "8096"
      traefik.http.middlewares.jellyfin-mw.headers.SSLRedirect: "true"
      traefik.http.middlewares.jellyfin-mw.headers.STSIncludeSubdomains: "true"
      traefik.http.middlewares.jellyfin-mw.headers.STSPreload: "true"
      traefik.http.middlewares.jellyfin-mw.headers.customrequestheaders.X-Forwarded-Proto: "https"
      homepage.group: "Media"
      homepage.name: "Jellyfin"
      homepage.icon: "jellyfin.png"
      homepage.href: "https://jf.${DOMAIN_NAME}"
      homepage.description: "Media streaming"
      homepage.widget.fields: "['books', 'authors', 'categories', 'series']"
      homepage.widget.type: "jellyfin"
      homepage.widget.url: "http://10.10.1.13:8096"
      homepage.widget.key: "${HOMEPAGE_JELLYFIN_API}"
      homepage.widget.enableBlocks: true
      homepage.widget.enableNowPlaying: true
      homepage.widget.enableUser: true
      homepage.widget.showEpisodeNumber: true
      homepage.widget.expandOneStreamToTwoRows: true
    restart: unless-stopped
    volumes:
      - /opt/docker/jellyfin/jellyfin_config:/config
      - /Data/TVShows:/tv
      - /Data/Anime:/anime
      - /Data/Cartoons:/cartoons
      - /Data/DocumentaryMovies:/documentary_movies
      - /Data/DocumentaryShows:/documentary_shows
      - /Data/Movies:/movies
    working_dir: /
networks:
  jellyfin:
    name: jellyfin
    driver: bridge
    external: false
  traefik:
    external: true
what am i doing wrong?