Jellyfin Reverse Proxy with Caddy: HTTPS for Your Media Server

Guide · Jellyfin · Last updated · How we research

Sources: official docs and release notes · Drafted with AI assistance, then checked against the linked sources

On this page
  1. Step 1 — DNS
  2. Step 2 — Know Jellyfin's listen address
  3. Step 3 — One-liner (quick test)
  4. Step 4 — Caddyfile (recommended)
  5. Step 5 — Optional subpath
  6. Step 6 — TLS DNS plugins (caution)
  7. Transcoding and remote playback
  8. FAQ
  9. Sources

Pinned version: Jellyfin Server v12.4 (GitHub release, published 2026-10-26). Caddy v2.11.9 (GitHub release). Last checked: 2026-11-10.

Serve Jellyfin over HTTPS with Caddy on a domain or subdomain. Jellyfin's official Caddy docs support a one-liner, a Caddyfile, and an optional subpath when you set Jellyfin's Base URL. For HTTP/3, forward UDP 443 as well as TCP 443.

New installs: Jellyfin Quick Sync in Docker. Comparing clients: Jellyfin vs Plex · Jellyfin vs Emby.

Step 1 — DNS

Point your domain's A/AAAA records at the public IP of the host that will run Caddy. Jellyfin's Caddy page notes automatic HTTPS needs those records in place.

Step 2 — Know Jellyfin's listen address

A typical Docker publish is host port 8096 to the container's 8096. Caddy should proxy to 127.0.0.1:8096 (Caddy on the host) or to the Compose service name on a shared Docker network. Do not expose 8096 on the router if Caddy terminates TLS on 443.

Step 3 — One-liner (quick test)

From Jellyfin's Caddy docs, if you can bind low ports and DNS already points at the machine:

sh
caddy reverse-proxy --from example.com --to 127.0.0.1:8096

Caddy provisions a certificate and you can open https://example.com.

Equivalent config from the same docs:

caddy
example.com {
    reverse_proxy 127.0.0.1:8096
}

Pinned Compose sidecar:

yaml
  caddy:
    image: caddy:2.11.9
    container_name: caddy
    restart: unless-stopped
    ports:
      - "80:80"
      - "443:443"
      - "443:443/udp"
    volumes:
      - ./Caddyfile:/etc/caddy/Caddyfile:ro
      - ./caddy-data:/data
      - ./caddy-config:/config

Reload after edits. For HTTP/3, Jellyfin's note says UDP 443 must be open on the firewall.

Step 5 — Optional subpath

Unlike Immich, Jellyfin can live under a path such as /jellyfin. First set Base URL in Admin → Networking (or edit <BaseUrl> in network.xml), restart Jellyfin, then:

caddy
example.com {
    redir /jellyfin /jellyfin/
    reverse_proxy /jellyfin/* 127.0.0.1:8096
}

The path matcher must match the Base URL. Prefer a dedicated subdomain when you can; it keeps cookies and client apps simpler.

Step 6 — TLS DNS plugins (caution)

Jellyfin's docs warn against copying Caddyfiles that put a DNS provider API key in a tls { dns … } block unless you understand the risk: it is not required for ordinary HTTP-01 HTTPS, it will not update dynamic DNS by itself, and a leaked key can compromise the domain. Prefer the default ACME HTTP-01 flow on ports 80/443 when possible.

Transcoding and remote playback

HTTPS does not replace hardware transcoding setup. If remote streams fail or burn CPU, see Jellyfin transcoding troubleshooting and Quick Sync in Docker.

FAQ

Which Jellyfin version is this for?

v12.4, the current stable server release (GitHub, checked 2026-11-10). Direct upgrades from 10.10.7 and 10.11.x to 12.x are supported per Jellyfin's release notes; back up before major upgrades.

Can I use the same Caddy for Immich and Jellyfin?

Yes — separate site blocks (or hostnames) in one Caddyfile, each reverse_proxy to the right upstream port (2283 vs 8096). Immich still needs its own subdomain root; see Immich reverse proxy with Caddy.

Is Meshnet or Tailscale better than a public proxy?

A public reverse proxy needs no client VPN but exposes the UI. Mesh/VPN options keep Jellyfin off the public internet; see Tailscale vs WireGuard vs Cloudflare Tunnel.

Sources

Printable restore checklist: Jellyfin restore checklist · Caddy restore checklist. One page with what to back up, the restore steps, gotchas and how to check it worked. Or build a full recovery pack for your lab.

Related guides