Jellyfin Reverse Proxy with Caddy: HTTPS for Your Media Server
On this page
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:
caddy reverse-proxy --from example.com --to 127.0.0.1:8096Caddy provisions a certificate and you can open https://example.com.
Step 4 — Caddyfile (recommended)
Equivalent config from the same docs:
example.com {
reverse_proxy 127.0.0.1:8096
}Pinned Compose sidecar:
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:/configReload 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:
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
- Jellyfin docs, Caddy reverse proxy: https://jellyfin.org/docs/general/post-install/networking/reverse-proxy/caddy (checked 2026-11-10)
- Jellyfin Server v12.4: https://github.com/jellyfin/jellyfin/releases/tag/v12.4 (checked 2026-11-10)
- Caddy v2.11.9: https://github.com/caddyserver/caddy/releases/tag/v2.11.9 (checked 2026-11-10)
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
- Jellyfin Intel Quick Sync Hardware Transcoding in Docker
- Jellyfin Transcoding Not Working: A Checklist
- Jellyfin vs Plex in 2026: What You Pay for Remote Streaming
- Immich Reverse Proxy with Caddy: HTTPS on a Subdomain
- Jellyfin Backup, Restore and Move to a New Server
- All Jellyfin pages
- Comparisons
- All guides

