Skip to content
Cinema Server - Jellyfin

Cinema Server - Jellyfin

Updated: at 06:20 PM

Table of contents

Open Table of contents

Intro

Jellyfin is an open-source media server that allows you to organize and stream your media collection. This guide shows how to set it up using Docker and configure nginx as a reverse proxy.

Setup

For more Docker-related content, check out my post on running Windows on Docker.

docker pull jellyfin/jellyfin:latest
mkdir -p /srv/jellyfin/{config,cache}
docker run -d -v /srv/jellyfin/config:/config -v /srv/jellyfin/cache:/cache -v /mnt/volume_sfo3_01:/media --net=host jellyfin/jellyfin:latest

Nginx Configuration

To make Jellyfin accessible via a domain name or IP, we’ll set up nginx as a reverse proxy:

apt install nginx

vim/etc/nginx/sites-available/cinema
# write there
server {
   listen 80;
   server_name 0.0.0.0 your.cinema.url.com YOUR.CINEMA.IP.IP;  
   location / {
       proxy_pass http://localhost:8096;
       proxy_http_version 1.1;
       proxy_set_header Upgrade $http_upgrade;
       proxy_set_header Connection 'upgrade';
       proxy_set_header Host $host;
       proxy_cache_bypass $http_upgrade;
   }
}

ln -s /etc/nginx/sites-available/cinema /etc/nginx/sites-enabled/cinema

systemctl reload nginx

Client Options

You can access Jellyfin through various clients:

flatpak install flathub com.github.iwalton3.jellyfin-media-player
flatpak run com.github.iwalton3.jellyfin-media-player

Legally Download Movies

To populate your media library, you can use torrent clients. Download only the ones that you have rights to :)

sudo apt install transmission-cli

Downloading Movies from Your PC

If you have media files on your local machine, you can transfer them to your server using one of these methods:

python3 -m http.server
ssh root@<IP> -R 8000:localhost:8000
wget --recursive --no-parent localhost:8000/somefolder

Result

The Cinema Website that is better than any other in the internet, you will need only pay for hosting it. However, you can benefit from some Cloud Providers that may host it freely (for some period). For more information on free cloud resources, check out my guide on free resources for developers.