Skip to content
Black Friday · −50 % off your first invoice on Xeon VPS with code BF50XEON, −30 % off our other services with BF30 · domain names and dedicated servers excluded See our plans
CloudFive
Log in

01

Before you start: media, disk and memory

Jellyfin serves your own media: family videos, DRM-free music you bought, films and series you are allowed to copy for yourself. Streaming content you hold no rights to to other people is illegal, on a VPS as anywhere else.

You need:

  • A recent Linux VPS with a sudo user: Ubuntu 24.04 or Debian 12 or 13.
  • Enough disk: this is the real limit. A high-definition film often weighs several gigabytes, and a whole collection quickly reaches hundreds of gigabytes. Add up what you want to put online before choosing a plan, and keep a margin for the cache and the images Jellyfin generates.
  • Memory: the Jellyfin documentation recommends 8 GB for a typical installation, and says a headless Linux server can make do with 4 GB.
  • A domain name, for example medias.example.fr, with a DNS A record pointing to the VPS's IPv4 address, for HTTPS.

Container (LXC) or virtual machine (KVM)? Jellyfin needs no kernel module and Docker runs in a container with nesting enabled: a container VPS is fine. Hardware-accelerated transcoding, however, needs a graphics processor, which VPS plans do not have (see the transcoding section). The differences between the two kinds of VPS are in the guide KVM or container VPS.

Do the basic security settings first (SSH key, non-root user, automatic updates): the guide securing a Linux VPS gives the order to follow.

02

Install Jellyfin with Docker Compose

Install Docker with the official script, as described in the guide installing Docker on a VPS. Then create the Jellyfin folders and the media folder, and give them to your user:

sudo mkdir -p /srv/jellyfin/config /srv/jellyfin/cache
sudo mkdir -p /srv/medias/films /srv/medias/series /srv/medias/musique
sudo chown -R $(id -u):$(id -g) /srv/jellyfin /srv/medias
id -u; id -g

The two numbers shown (often 1000 and 1000) go on the user line below: Jellyfin will run as your user instead of root. Create the file /srv/jellyfin/compose.yaml, adapted from the example in the official documentation:

services:
  jellyfin:
    image: jellyfin/jellyfin
    container_name: jellyfin
    user: "1000:1000"
    ports:
      - "127.0.0.1:8096:8096/tcp"
    volumes:
      - /srv/jellyfin/config:/config
      - /srv/jellyfin/cache:/cache
      - type: bind
        source: /srv/medias
        target: /media
        read_only: true
    restart: 'unless-stopped'
    environment:
      - JELLYFIN_PublishedServerUrl=https://medias.example.fr

Two deliberate differences from the official example, for a VPS:

  • port 8096 only listens on 127.0.0.1: Jellyfin can only be reached through the HTTPS proxy set up below. This matters, because a port published by Docker bypasses ufw rules;
  • port 7359/UDP (automatic discovery on the local network) is removed: it is useless on a remote server.

The media are mounted read-only: Jellyfin reads them without ever changing them, and keeps its images and metadata in /config. If you later ask it to save subtitles or images next to the files, remove the read_only line. Start the container and follow its log:

cd /srv/jellyfin
sudo docker compose up -d
sudo docker compose logs -f

Jellyfin also publishes an APT repository for Debian and Ubuntu, if you prefer installing it without Docker: the steps are in its official documentation. The rest of this guide assumes the Docker installation.

03

First setup and uploading your media

Until HTTPS is in place, do not leave the first-run wizard open on the Internet: anyone could create the administrator account. Use an SSH tunnel from your computer:

ssh -L 8096:127.0.0.1:8096 utilisateur@adresse-ip-du-vps

Open http://localhost:8096 in your browser. The wizard asks for the language, creates the administrator account (long, unique password), then offers to add libraries: type Movies with the folder /media/films, type Shows with /media/series, type Music with /media/musique. Choose the metadata language and country that match your library.

Then upload your files over SSH. From Linux or macOS, rsync resumes an interrupted upload; install it on the VPS too with sudo apt install -y rsync, then run from your computer:

rsync -avP ~/Videos/Films/ utilisateur@adresse-ip-du-vps:/srv/medias/films/

From Windows, an SFTP client such as WinSCP or FileZilla does the same. For Jellyfin to recognise your titles, follow the naming convention in its documentation: one folder per film, Title (Year)/Title (Year).mkv, and for series Series (Year)/Season 01/Series S01E01.mkv. Then run a scan from Dashboard, Libraries.

04

HTTPS with Caddy, ports and firewall

Caddy obtains and renews a Let's Encrypt certificate on its own. Install it from the distribution repositories, then replace its configuration with the one from the Jellyfin documentation:

sudo apt install -y caddy
sudo tee /etc/caddy/Caddyfile > /dev/null <<'EOF'
medias.example.fr {
    reverse_proxy 127.0.0.1:8096
}
EOF
sudo systemctl reload caddy

Only open SSH, HTTP (for Let's Encrypt validation and the redirect) and HTTPS:

sudo apt install -y ufw
sudo ufw allow OpenSSH
sudo ufw allow 80,443/tcp
sudo ufw enable
sudo ss -ltnp | grep 8096

The last command must show 127.0.0.1:8096: Jellyfin is not exposed directly. Caddy can also serve HTTP/3, which uses UDP port 443: add sudo ufw allow 443/udp if you want it, otherwise browsers stay on HTTP/2. Your server now answers on https://medias.example.fr, and the Jellyfin apps (Android, iOS, TVs) connect with that address.

Tell Jellyfin about the proxy. From Jellyfin's point of view, every connection comes from the Docker network gateway. Without this setting, every viewer looks like a local network device, and the bitrate limit meant for the Internet does not apply. Show the gateway address:

sudo docker network inspect jellyfin_default -f '{{range .IPAM.Config}}{{.Gateway}}{{end}}'

Add it under Dashboard, Networking, Known proxies, then restart the container with cd /srv/jellyfin && sudo docker compose restart. Jellyfin will then read each client's real address from the header Caddy forwards. For more on ufw and SSH, see securing a Linux VPS.

05

Transcoding without a graphics card: the honest limits

When a device can play a file as it is, Jellyfin sends it unchanged (direct play): this costs the processor almost nothing. When only the file's container is the problem, it repackages it without re-encoding the video, which stays light. But when the video format, the bitrate or the subtitles do not suit the device, it transcodes: it re-encodes the video live, and on a VPS this happens entirely on the processor.

The Jellyfin documentation is clear on this: without a graphics processor, transcoding is very demanding. Decoding HEVC, VP9 or AV1 can be heavy even for a recent processor, and converting HDR video for a standard screen (tone mapping) is heavier still. In practice, on a VPS:

  • direct play works for as many viewers as the network bandwidth allows;
  • one transcode of a high-definition H.264 video can work with several fast vCPUs, but it keeps the processor busy for as long as it runs: test with your own files while watching top during playback;
  • transcoded 4K HDR, let alone for several people at once, is not realistic without a graphics card.

To stay in direct play as often as possible:

  • prepare your files in a format almost everything plays, H.264 video with AAC audio, and text subtitles (SRT) rather than image subtitles (PGS), which Jellyfin usually has to burn into the video. The conversion is done once and for all, for example on your computer with FFmpeg, for a video that is not HDR:
ffmpeg -i entree.mkv -map 0:v:0 -map 0:a:0 -c:v libx264 -crf 20 -preset slow -pix_fmt yuv420p -c:a aac -b:a 192k -sn sortie.mp4

The command keeps the first video track and the first audio track, and forces 8-bit video that every H.264 player accepts. Subtitles go next to it, as a text file with the same name followed by the language: Title (Year).en.srt.

  • under Dashboard, Playback, Transcoding, leave hardware acceleration set to None and enable transcode throttling, which avoids encoding far faster than playback;
  • in each user's profile, set the Internet bitrate limit, and if needed untick permission to play videos that require transcoding: Jellyfin will refuse playback instead of saturating the server.

The dashboard shows, for each current playback, whether it is direct or transcoded, and why.

06

Backups and updates

Since version 10.11, Jellyfin has a built-in backup: Dashboard, Backups, Create Backup. It produces a zip archive of the database, and optionally of metadata, subtitles and trickplay images, stored in Jellyfin's data folder (under /srv/jellyfin/config with this guide). It can run with the server online, preferably when nobody is watching and no scan is running.

For a full copy of the configuration, the documentation says to stop the server before copying, otherwise the database may be locked and unrecoverable:

cd /srv/jellyfin
sudo docker compose stop
sudo tar czf ~/jellyfin-config-$(date +%F).tar.gz -C /srv/jellyfin config
sudo docker compose start
rsync -avP ~/jellyfin-config-*.tar.gz utilisateur@autre-machine:/sauvegardes/jellyfin/

Always send the copy off the VPS. Jellyfin backups do not contain your media: keep the originals elsewhere, for example at home. A VPS snapshot, taken from the customer area before an update, complements these copies without replacing them.

To update Jellyfin, pull the new image and recreate the container:

cd /srv/jellyfin
sudo docker compose pull
sudo docker compose up -d
sudo docker image prune -f

Before a new major version, read the release notes: the database migration can take a while on first start. If you prefer to choose when each update happens, set a specific version tag in compose.yaml instead of the default image.

07

What CloudFive offers, and when it is not the right choice

To host Jellyfin, CloudFive offers Linux VPS plans in France:

  • the Ryzen VPS, on a Ryzen 9 9950X with DDR5 memory and NVMe disk, the best fit if you need to transcode now and then, since everything runs on the processor;
  • the Intel VPS, on a Xeon E5-2687W v4 with DDR4 ECC memory, our cheapest VPS, for a library watched mostly in direct play;
  • both are Linux containers (LXC) with nesting enabled, where Docker works, with root access, a dedicated IPv4 address, a 1 Gb/s port and basic DDoS protection included;
  • snapshots are taken from the customer area, and you can change plan without reinstalling when the library grows.

The servers are in France, run by CLOUD FIVE, a French company, on its own network AS218808. Billing is monthly with no commitment, and support answers in French by ticket, on Discord and by phone, 7 days a week. Prices are on the pricing page.

It is not the right choice if:

  • your collection weighs several terabytes: a VPS disk is not made for that. A dedicated server gives far more space and the whole processor, as the guide VPS or dedicated server explains;
  • you want to transcode 4K HDR or several streams at once: that takes a machine with a suitable graphics processor, which our VPS plans do not have;
  • you mostly watch at home, on the same network as your files: a machine at home avoids sending the whole library over the Internet;
  • you want to share publicly content you hold no rights to: neither Jellyfin nor CloudFive are made for that.

To compare plans for your use, see also choosing a VPS.

08

Frequently asked questions

How do I install Jellyfin on a VPS?

On an Ubuntu 24.04 or Debian VPS, install Docker, create a compose.yaml file with the jellyfin/jellyfin image, the /config and /cache folders and your media mounted in /media, and port 8096 bound to 127.0.0.1. Run docker compose up -d, set up Jellyfin through an SSH tunnel, then put it online over HTTPS with Caddy.

Can Jellyfin transcode without a graphics card?

Yes, on the processor, but it is very demanding. One high-definition H.264 stream can work on several fast vCPUs; 4K HDR with tone mapping, or several transcodes at once, needs a graphics card. On a VPS, prepare your files in H.264 and AAC to stay in direct play.

Which ports should I open for Jellyfin?

Jellyfin listens on TCP port 8096. On a VPS, keep it closed and go through an HTTPS proxy: only open TCP 80 and 443, plus SSH. UDP port 7359 is only used for discovery on a local network.

How much RAM does Jellyfin need?

The Jellyfin documentation recommends 8 GB for a typical installation and says a headless Linux server can run with 4 GB. Disk space often matters more: it limits the size of the library.

How do I put Jellyfin behind HTTPS?

Point a domain name to the VPS, install Caddy and put in /etc/caddy/Caddyfile a block with your domain and the line reverse_proxy 127.0.0.1:8096. Caddy obtains and renews the Let's Encrypt certificate on its own. Then declare the proxy under Networking, Known proxies.

Does Jellyfin run in an LXC container?

Yes. Jellyfin needs no kernel module, and Docker runs in an LXC container with nesting enabled, like CloudFive's Linux VPS plans. Only hardware-accelerated transcoding is impossible, since a VPS has no graphics card.

Support CloudFive AI

An answer right away, a real team behind it.

CloudFive AI answers you at any hour, in seconds. When it doesn’t know, or as soon as you ask, the team that runs the machines takes over. No offshore call centre.

  • TicketThe team replies in under 2 hours, 7 days a week.
  • CloudFive AIAt any hour, on ia.cloudfive.fr, Discord and in your customer area.
  • DiscordThe team, the AI and other customers, in the help channel.
  • Your data stays with usAI runs on our servers in France; e-mails, IPs and passwords are masked.
A ticket in the customer area: a customer’s question about a Minecraft plugin, and the CloudFive team’s reply
A real ticket in the customer area, answered by the team (demo account; shown in French).
CUSTOMER AREA · APP

Your servers.
At your fingertips.

Restart a server, watch its resources live, pay an invoice or open a ticket — and get an alert when something goes wrong.

  • The status of all your services at a glance
  • Blocked attacks, filtered traffic, monthly peak
  • A notification when a server goes down or an invoice is due

App coming soon · in the meantime, everything works in your browser at manager.cloudfive.fr

The CloudFive app: the list of your services, with their status
The CloudFive app: the home screen, your services’ status, blocked attacks and an invoice to pay