Thursday, January 27, 2022

How To Install Jellyfin Media Server With Nginx On Ubuntu 20.04 LTS

 lsb_release -d ; hostname -I ; hostname
echo "deb [arch=$( dpkg --print-architecture )] https://repo.jellyfin.org/ubuntu focal main" | sudo tee /etc/apt/sources.list.d/jellyfin.list
wget -O - https://repo.jellyfin.org/jellyfin_team.gpg.key | sudo apt-key add -
apt update ; apt install apt-transport-https ca-certificates jellyfin nginx  -y
systemctl start jellyfin ; systemctl status jellyfin
http://127.0.0.1:8096/

Library Path - mkdir -p /jellyfin-library/Movies
nano /etc/nginx/conf.d/jellyfin.conf
server {
       listen 80;
       server_name ubuntu.example.com;

       location / {
              proxy_pass http://127.0.0.1:8096;
              proxy_set_header Host $http_host;
              proxy_set_header X-Real-IP $remote_addr;
              proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
              proxy_set_header X-Forwarded-Proto $scheme;
        }
}
nginx -t
systemctl reload nginx ; systemctl status nginx
echo "192.168.1.80 ubuntu.example.com"  >> /etc/hosts
ubuntu.example.com
__________________________________________________________________________________________

No comments:

Post a Comment