Self-host Jellyfin
Your own Netflix-style media server for films, shows, music and books.
Shelley handles the setup. About 15 minutes. Needs a 100 GB disk: Shelley sends you a link to grow it.
Prefer a terminal?
curl -fsSL https://exe.dev/deploy/jellyfin/prompt.txt | ssh exe.dev new --disk=100GB --prompt=/dev/stdinJellyfin is a free, open-source media server: you give it folders of films, TV shows, music and books, and it gives you a Netflix-style library with posters, plot summaries, "continue watching", and players in the browser, on phones and on TVs. It's the fully open alternative to Plex and Emby, with no accounts at a company and nothing behind a paywall, and it's one container.
An exe.dev VM gives it what a media server needs: a real, persistent
disk that grows in a minute, an always-on machine, and HTTPS at
https://my-jellyfin.exe.xyz/. It's private by default: nobody reaches
even Jellyfin's login page without first signing in to exe.dev as you or
someone you've shared the VM with. Apps that
can send a VM token get through too. Shelley
sets it up, and can look after backups and updates later.
What you get#
- Jellyfin 12.4 in Docker Compose, pinned to one release, restarted after a reboot.
- The web app at https://my-jellyfin.exe.xyz/, private behind exe.dev login, ready for the owner's admin account.
- Folders for films, shows, music and books in ~/media, on a disk with room to grow.
- exe.dev's proxy set as a known proxy, so Jellyfin sees each viewer's real address.
What's running, and where
https://my-jellyfin.exe.xyz/
The Jellyfin web app, behind exe.dev login and Jellyfin's own accounts
https://my-jellyfin.exe.xyz/
The same, for people you share the VM with, and for apps that send a VM token header
Deploy with Shelley#
Click Deploy and Shelley will set up Jellyfin on a new VM, then check that it works. No config-file wrangling required.
Jellyfin needs a 100 GB disk, more than a new VM has. Shelley checks first and, if it's too small, gives you a link to grow it; the terminal command below makes the VM that size from the start.
Prefer a terminal?
curl -fsSL \
https://exe.dev/deploy/jellyfin/prompt.txt \
| ssh exe.dev new --disk=100GB --prompt=/dev/stdinWhat Shelley is told
Set up Jellyfin on this VM by following the exe.dev recipe at https://exe.dev/deploy/jellyfin.md?via=deploy from top to bottom.
The recipe's example VM name is my-jellyfin. This VM's name is the output of `hostname`: use it wherever the recipe writes my-jellyfin. Skip the step that creates the VM; you are on it.
This recipe needs a 100GB disk, and a new VM's may be smaller. Before you install anything, run `df -h /`. If its size is under 90G, stop and ask me to grow the disk, either with this link: https://exe.dev/suggest?command=resize%20my-jellyfin%20--disk%3D100GB or, on my computer, with `ssh exe.dev resize my-jellyfin --disk=100GB`. When I say it's done, run `sudo resize2fs "$(findmnt -no SOURCE /)"`, check `df -h /` again, and carry on.
You are done when all of these are true. Check each one yourself:
- Jellyfin 12.4 in Docker Compose, pinned to one release, restarted after a reboot.
- The web app at https://my-jellyfin.exe.xyz/, private behind exe.dev login, ready for the owner's admin account.
- Folders for films, shows, music and books in ~/media, on a disk with room to grow.
- exe.dev's proxy set as a known proxy, so Jellyfin sees each viewer's real address.
Read the whole recipe, including the closed details. For initial setup,
follow "Install by hand" first, from "Check the disk" on (skip creating
the VM). The walkthrough at the top is for the owner afterwards.
Work as exedev in ~/jellyfin. Don't run the Jellyfin setup wizard or
create any account: the first person through the wizard becomes admin,
and that must be the owner. Until then Jellyfin's setup API is open, so
never make the VM public. Don't download media, generate tokens or
change Jellyfin settings beyond the known proxy step. Don't run Restore
or Update.
If the disk is under 90 GB, stop and give the owner a suggest link to
resize it, as the recipe says, before installing.
Verify docker.service is enabled, the container is up, curl
localhost:8000/health prints Healthy, and network.xml lists the known
proxy. Do not reboot. Finish by sending the owner to
https://<vm>.exe.xyz/ to run the setup wizard, and point them to
"Add your media".
Finish with the URLs I should open.
Also at /deploy/jellyfin/prompt.txt. The recipe it follows is /deploy/jellyfin.md.
Run the setup wizard#
Open https://my-jellyfin.exe.xyz/ and sign in to exe.dev if asked.
Jellyfin's wizard starts with Welcome to Jellyfin!:
- Server name is filled in with the VM's name; keep it or change it, pick a language, Next.
- Tell us about yourself: a username and a strong password. This is the admin account, so do it before you share the VM with anyone.
- Set up your media libraries: you can add them now or later (see
Add your media). The folders are under
/media. - Metadata language, then Set up Remote Access: leave Allow remote connections to this server on. Everyone reaches Jellyfin through exe.dev's proxy, so to Jellyfin they're all remote.
- Finish, and sign in.
Add your media#
Your files go in ~/media on the VM, in one folder per kind. The recipe
makes movies, shows, music and books. Jellyfin finds the right
poster and plot from the names, so name them the way it expects:
media/movies/Night of the Living Dead (1968)/Night of the Living Dead (1968).mp4
media/shows/Show Name (2019)/Season 01/Show Name S01E01.mkv
media/music/Artist/Album/01 - Track.flac
media/books/Author/Book Title.epub
Jellyfin's guides for films, shows, music and books cover extras, multi-part films and the rest. Only add media you have the rights to: your own recordings and rips, purchases sold without DRM, and public domain or openly licensed works.
To copy a folder from your computer, use rsync, which picks up where it
left off if the connection drops. On your computer:
rsync -avP ~/Videos/Films/ my-jellyfin.exe.xyz:media/movies/
rsync -avP ~/Music/ my-jellyfin.exe.xyz:media/music/
(scp -r works too.) Uploads are inbound traffic, which exe.dev doesn't
count against your bandwidth; how long it takes depends on your upload
speed. Something you can download, such as a public-domain film, is
quicker to fetch from the VM itself with curl -LO into the right
folder. To keep a folder on your computer in sync instead of copying it
once, run Syncthing on this VM and point it at, say,
~/media/music.
Then, in Jellyfin, open the menu, Dashboard → Libraries → Add Media
Library, choose the Content type (Movies, Shows, Music, Books…), give
it a name, click + next to Folders and pick /media/movies (or
music, …). Jellyfin scans the folder and fetches artwork and details;
it picks up new files on its own, and Scan All Libraries forces it.
Watch in a browser#
The web app at https://my-jellyfin.exe.xyz/ is the whole of Jellyfin:
playback, the admin dashboard, everything. It works in any modern browser
on a computer, phone or tablet, and needs no token, just your exe.dev
login. Chrome, Firefox, Safari and Edge all play H.264 video and AAC
audio as they are (direct play), so Jellyfin only sends the file and
your VM's CPU stays idle.
Apps on your phone and TV#
Native apps are where a private VM gets in the way: they can't show exe.dev's login page, so without a token they just fail to connect. You have three ways round it.
Streamyfin, with a VM token#
Streamyfin is a third-party Jellyfin app for Android and iPhone that, since version 0.55, sends custom headers with every request, including video, artwork and downloads. We tested the Android app (0.55.2) against a private VM: login, browsing, playback and seeking all work, and Jellyfin streamed the film without transcoding.
On your computer, make a token for this VM, one per device so you can revoke them separately:
ssh exe.dev ssh-key generate-api-key --vm=my-jellyfin --label=jellyfin-phone --exp=1y
It prints a token starting with exe1.. Keep it like a password: it gets
anyone past exe.dev's login to this VM (Jellyfin's own login still
applies). In Streamyfin, before connecting:
- Under the server URL, tap Advanced: custom headers, then Add header.
- Header name
X-Exedev-Authorization, Header valueBearerfollowed by the token. Tap Done; the row now says 1 header. - Enter
https://my-jellyfin.exe.xyz, tap Connect, and log in with your Jellyfin username and password.
Without the header, Streamyfin says Connection failed. You can change
the header later under Settings → Network → Custom headers. When the
token expires, make a new one and replace the value; to cut a device off,
on your computer: ssh exe.dev ssh-key remove jellyfin-phone.
Other apps: Tailscale or a public VM#
The official Jellyfin apps, Swiftfin, Findroid, the TV apps and most
others have no custom-header setting. We tried the official Android app
(2.7.3): it says Unable to reach server, with or without the token in
the URL (https://x:TOKEN@…). That URL form doesn't help Jellyfin apps
anyway, since Jellyfin needs the same Authorization header for its own
login. Two ways to use those apps:
- Tailscale keeps the VM private and works with every app. Put the VM
on your tailnet with exe.dev's
Tailscale integration, install
Tailscale on your phone or TV, and enter
http://my-jellyfin:8000(the VM's Tailscale name) as the server. This skips exe.dev's proxy, so it isn't limited to HTTPS. We haven't tested this path, since it needs a Tailscale account. - Make the VM public:
ssh exe.dev share set-public my-jellyfinon your computer, after the setup wizard. Then any app connects with just Jellyfin's login. Know the trade-off: we checked that a public Jellyfin 12.4 serves a file's stream and its images, without any login, to anyone who knows the item's ID, a known gap (#13986, #13988). Use strong passwords, keep Jellyfin updated, andssh exe.dev share set-private my-jellyfinundoes it.
Share it with your family#
Each person needs exe.dev access to the VM and a Jellyfin account:
- On your computer,
ssh exe.dev share add my-jellyfin mum@example.com. They get an email, sign in to exe.dev with that address, and can openhttps://my-jellyfin.exe.xyz/. They can't log in to the VM itself. - In Jellyfin, Dashboard → Users → Add User: a name and password, and which libraries they see. Jellyfin keeps watch history and "continue watching" per user.
- For Streamyfin, make them a token of their own with a different
--label, so you can revoke it alone.
Transcoding on CPU#
When a device can't play a file as it is (an old TV, HEVC on a browser without it, or a bitrate limit), Jellyfin converts it on the fly with its bundled FFmpeg. exe.dev VMs have no GPU, so that happens on the CPU. What we measured on a default VM (2 vCPU, 8 GB), with 1x meaning exactly real time and anything under 1x stuttering:
| Conversion | Speed |
|---|---|
| 1080p H.264 to 720p, 3.8 Mbit/s, Jellyfin's own transcode | 4.3-4.6x |
| 1080p H.264 to 720p, 4 Mbit/s (FFmpeg, same settings) | 2.1x |
| 1080p H.264 to 1080p, 8 Mbit/s | 1.25x |
| 1080p HEVC to 1080p H.264 | 1.3x |
| 4K H.264 to 1080p | 1.3x |
| 480p H.264 to VP9, for a browser without H.264 | 0.47x |
So plan on one 1080p transcode at a time, or a few at 720p, and on direct play for everything else. 4K HDR with tone mapping and several viewers at once need a GPU we don't have. To stay in direct play:
- Keep files in H.264 or HEVC with AAC audio, in MP4 or MKV. Most browsers and apps play those as they are; the film page shows each file's codecs.
- Use a player that plays more. Native apps such as Streamyfin play more formats than a browser, which is the pickiest client.
- In the player's settings, choose the original quality rather than a lower bitrate, which forces a transcode.
If a big transcode is needed regularly, give the VM more CPUs within your
plan (ssh exe.dev resize my-jellyfin --cpu=4 --memory=16GB, which may
restart it). Jellyfin's seek previews (trickplay) and chapter images
are off for new libraries, and also cost CPU and disk if you turn them on.
Disk, bandwidth and what it costs#
A new exe.dev VM has a 25 GB disk, and the system and Jellyfin's image take about 8 GB of it, so this recipe makes the disk at least 100 GB. That costs nothing up front: exe.dev bills disk by what's used, not its size. Jellyfin's own database and artwork stay small (megabytes for a few hundred items); your media is what fills the disk.
Your exe.dev plan includes disk shared by all your VMs: on Personal, 100 GB per 2 vCPU of capacity (100 GB at $15 a month, 200 GB at $35, 400 GB at $75, 800 GB at $155). Beyond that, extra disk is billed per GiB-month at the rate on the pricing page, on your average use over the month (see Usage). A music collection fits easily; a film collection is where it adds up, at roughly 1-4 GB per film in 1080p and much more for 4K or untouched Blu-ray rips.
Check with df -h / on the VM, and grow the disk before it fills; on your
computer:
ssh exe.dev resize my-jellyfin --disk=300GB
Then on the VM, sudo resize2fs "$(findmnt -no SOURCE /)". Disks only
grow.
Bandwidth matters more for video than for most apps. Plans include
200 GB a month of outbound traffic, and every stream is outbound: a
1080p film at 5 Mbit/s is about 2.3 GB an hour, so 200 GB is roughly 90
hours of it, and a 4K stream at 40 Mbit/s uses that up in about 11 hours.
Music is tiny by comparison (about 150 MB an hour at 320 kbit/s).
Uploading media to the VM is inbound and free. ssh exe.dev billing usage
shows where you are.
Music and books#
A Music library groups your files by artist and album from their tags (we added a Beethoven symphony and Jellyfin found the album, the composer, the conductor and the orchestra). The web app plays music with a queue and playlists, and Streamyfin plays it on phones. Jellyfin streams the original file when the device can play it.
A Books library takes EPUB, PDF, MOBI, comics (CBZ, CBR) and audiobooks. The web app has a reader for EPUB, PDF and comics, and every book can be downloaded from its page to read elsewhere.
Keep it safe#
Two things live on the VM, and they need different care:
- Jellyfin's data, in
~/jellyfin/config: users and passwords, watch history, libraries, settings and fetched artwork. Small, and the part you can't get back from your files. - Your media, in
~/media. If you copied it from your computer, you already have it. If the VM is its only home, it needs a backup like any other files.
For Jellyfin's data, use its built-in backup: Dashboard → Backups →
Create Backup writes a zip to ~/jellyfin/config/data/backups while
Jellyfin runs (keep at least 5 GB free for it). Copy those zips off the VM;
on your computer:
rsync -a my-jellyfin.exe.xyz:jellyfin/config/data/backups/ ./jellyfin-backups/
They hold password hashes and API keys, so keep the copy private. For the whole VM, media included, exe.dev's VM backups (preview) take incremental snapshots of the disk to an Amazon S3 bucket of yours. To restore, see Back up and restore, or ask Shelley.
The nuts and bolts#
Happy clicking Deploy? You can stop here. These are the same setup steps Shelley follows, plus the maintenance commands for later. Tested with Jellyfin 12.4 (FFmpeg 8.1.3) on a 2 vCPU, 8 GB exe.dev VM, with Docker 29.1 and Compose 2.40.
Install by hand
Create a VM#
On your computer (pick another name if my-jellyfin is taken):
ssh exe.dev new --name=my-jellyfin --disk=100GB
ssh my-jellyfin.exe.xyz
All remaining installation commands run on the VM, as exedev.
Check the disk#
df -h /
If Size is under 90G, the VM was made with a smaller disk. Grow it with
this link
(with your VM's name), or on your computer with
ssh exe.dev resize my-jellyfin --disk=100GB. Then, back on the VM:
sudo resize2fs "$(findmnt -no SOURCE /)"
df -h /
Get Docker ready#
Enable Docker at boot, or exe.dev's on-demand Docker won't start Jellyfin after a reboot:
sudo systemctl enable --now docker.service
systemctl is-enabled docker.service
Expect enabled.
Write the compose file#
This makes the folders and a compose.yaml that runs the official image,
pinned to 12.4, as your own user, with Jellyfin's port 8096 published on
8000, the port behind https://<vm>.exe.xyz/. Your media is mounted
read-only, so Jellyfin can never change or delete your files:
mkdir -p ~/jellyfin/config ~/jellyfin/cache ~/media/movies ~/media/shows ~/media/music ~/media/books
cd ~/jellyfin
cat > compose.yaml <<EOF
services:
jellyfin:
image: jellyfin/jellyfin:12.4
container_name: jellyfin
hostname: $(hostname)
user: 1000:1000
ports:
- 8000:8096
volumes:
- ./config:/config
- ./cache:/cache
- /home/exedev/media:/media:ro
environment:
- JELLYFIN_PublishedServerUrl=https://$(hostname).exe.xyz
restart: unless-stopped
EOF
cat compose.yaml
hostname gives the server the VM's name instead of a container ID, and
JELLYFIN_PublishedServerUrl is the address Jellyfin tells apps about.
If you want Jellyfin to delete files or save subtitles and artwork next
to them, drop the :ro.
Trust exe.dev's proxy#
exe.dev's proxy passes each viewer's address in X-Forwarded-For, but
Jellyfin ignores that header unless the proxy is listed under Known
proxies. Without it, Jellyfin sees every viewer as the Docker gateway on
the VM (172.18.0.1): the dashboard shows the wrong addresses, and
per-user remote bitrate limits never apply. Requests reach Jellyfin
through Docker's network, so list Docker's private range. Write it into
Jellyfin's network settings before the first start; Jellyfin fills in the
rest with defaults:
mkdir -p ~/jellyfin/config/config
cd ~/jellyfin/config/config
[ -f network.xml ] || cat > network.xml <<'EOF'
<?xml version="1.0" encoding="utf-8"?>
<NetworkConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<KnownProxies>
<string>172.16.0.0/12</string>
</KnownProxies>
</NetworkConfiguration>
EOF
grep -A1 '<KnownProxies>' network.xml
Expect the 172.16.0.0/12 line. The same setting is under Dashboard →
Networking → Known proxies later (it takes a restart to apply). Leave
Base URL on that page empty: Jellyfin is at the root of its own address.
Start Jellyfin#
The image is about 750 MB to download (2.5 GB unpacked):
cd ~/jellyfin
docker compose pull -q
docker compose up -d
until curl -fs localhost:8000/health | grep -q Healthy; do sleep 2; done; echo Healthy
curl -s localhost:8000/System/Info/Public; echo
Expect Healthy and a line with your VM's name and "Version":"12.4.0".
Installation done. Keep the VM private and continue with Run the setup wizard: until the wizard is done, Jellyfin's setup API answers anyone who can reach it.
Back up and restore
A copy of Jellyfin's data#
Besides the zips from Dashboard → Backups (see
Keep it safe), a plain copy of ~/jellyfin/config is a
complete backup, as long as Jellyfin is stopped while you take it. On the
VM:
cd ~/jellyfin
docker compose stop
tar -czf ~/jellyfin-config-$(date -u +%Y%m%d).tar.gz config compose.yaml
docker compose start
Copy the file to your computer with
rsync -a my-jellyfin.exe.xyz:'jellyfin-config-*.tar.gz' ./.
Restore onto a new VM#
Use a VM with enough disk for your media. On the new VM, follow
Install by hand through Start Jellyfin, with the same
Jellyfin version as the backup; don't run the wizard. Copy your media back
into ~/media the way you first did, and the backup to the VM. Then, on
the VM:
cd ~/jellyfin
docker compose down
rm -rf config
tar -xzf ~/jellyfin-config-20261122.tar.gz config
docker compose up -d
until curl -fs localhost:8000/health | grep -q Healthy; do sleep 2; done; echo Healthy
Use your backup's file name; the rm -rf config deletes the new install's
data, so never run it on a VM whose Jellyfin you want to keep. Log in with
your old account: users, libraries, watch history and the known proxy
setting come back. The media paths inside Jellyfin are the same (/media/…),
so nothing needs rescanning from scratch. Jellyfin can't go back to an
older version's data, so restore onto the version the backup came from.
Update Jellyfin
Read the release notes
first; major versions can drop old features (12.0 removed the old
/emby routes). Jellyfin migrates its database on the first start of a
new version and can't downgrade, so take a backup just before. On the
VM, replace 12.5 with the version you want:
cd ~/jellyfin
docker compose stop
tar -czf ~/jellyfin-config-pre-update-$(date -u +%Y%m%d).tar.gz config compose.yaml
OLD=$(grep -o 'jellyfin/jellyfin:[^ ]*' compose.yaml)
sed -i 's#jellyfin/jellyfin:[^ ]*#jellyfin/jellyfin:12.5#' compose.yaml
docker compose pull -q
docker compose up -d
until curl -fs localhost:8000/health | grep -q Healthy; do sleep 2; done; echo Healthy
curl -s localhost:8000/System/Info/Public; echo
docker image rm "$OLD"
Expect Healthy and the new version. The first start after a big update
can take a few minutes while Jellyfin migrates. The docker image rm
frees the old version's 2.5 GB. To undo, put the old tag back in
compose.yaml and restore the pre-update copy, as in
Restore onto a new VM; a whole-VM
backup taken just before is the quicker undo.
Something not working?
On the VM:
cd ~/jellyfin
docker compose ps
docker compose logs --tail=100 jellyfin
ls -t config/log/ | head
- An app says it can't connect, or a script gets
401: that's exe.dev's proxy: the request had no valid VM token. Check the header name and theBearerprefix, and whether the token expired (ssh exe.dev ssh-key liston your computer). Apps without custom headers can't connect to a private VM; see Other apps. - A library is empty after a scan: the folder must be under
~/mediaon the VM, and in Jellyfin you pick the path inside the container,/media/movies, not/home/exedev/media/movies. Check the names follow Jellyfin's naming guides. Permission deniedin the log: files copied in as another user. On the VM,sudo chown -R exedev:exedev ~/media ~/jellyfin.- Video stutters or buffers: it's probably transcoding faster than
the CPU can. During playback, Dashboard shows each session and why
it transcodes; see Transcoding on CPU. The
FFmpeg.Transcode-*files inconfig/logshow the speed. - Every viewer shows as
172.18.0.1: the known proxy isn't set. Enter172.16.0.0/12under Dashboard → Networking → Known proxies, save, and restart Jellyfin (docker compose restartin~/jellyfin). - Jellyfin gone after a reboot: run
sudo systemctl enable --now docker.service; the container restarts on its own once Docker runs. - Scans or playback fail with
No space left on device: the disk is full. Grow it as in Disk, bandwidth and what it costs.
Frequently asked questions#
Do Jellyfin apps work with a private exe.dev VM?
The web app does, in any browser, including on phones. Of the native apps, Streamyfin can send a VM token as a custom header, and we tested it on Android: login, browsing, playback and seeking all work. The official Jellyfin apps can't add headers; for them, use Tailscale or make the VM public.
Can Jellyfin transcode without a GPU?
Yes, on the CPU, within limits. On a default 2 vCPU VM, Jellyfin turned 1080p into 720p at four times real time, but 1080p to 1080p only just kept up. Prefer files and apps that direct play, which costs no CPU at all.
How much disk and bandwidth does a media server use?
The disk holds your library plus about 8 GB for the system and Jellyfin. Streaming counts as outbound traffic: plans include 200 GB a month, roughly 90 hours of 5 Mbit/s 1080p video. Uploading your files to the VM is inbound and free.
Is it safe to make Jellyfin public?
It works, and then every app can connect with only Jellyfin's login. But we found Jellyfin 12.4 serves a file's stream and images without a login to anyone who knows its item ID, so keep the VM private if that matters to you, and keep Jellyfin updated.
Is Jellyfin free?
Yes. Jellyfin is GPL-2.0 open source with no paid tier, no account with its makers, and no tracking. You pay for your exe.dev plan and any disk or bandwidth beyond its allowance.
Published Nov 25, 2026 · Updated Nov 22, 2026 · tested end to end Nov 22, 2026 · Markdown · manifest.json · Something wrong? Tell us