#+title: Jellyfin
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="_share/media/css/computer.css" />
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="_share/media/css/org-media-sass/content-overview.css" />
#+OPTIONS: H:6

* links
- [[./toc.org][TOC - Home System]]


* Jellyfin Basic Info

url: video.ronnyabraham.com

nginx conf: /etc/nginx/sites-available/video.ronnyabraham.com

| username       | password     | role  |
|----------------+--------------+-------|
| jellyfin-admin | 2reishit2ara | admin |
| ronnyfin       | 2reishit2ara | user  |

* setup Jellyfin

** install Jellyfin
#+begin_src
curl -fsSL https://repo.jellyfin.org/debian/jellyfin_team.gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/jellyfin.gpg

echo "deb [signed-by=/usr/share/keyrings/jellyfin.gpg] https://repo.jellyfin.org/debian bookworm main" | sudo tee /etc/apt/sources.list.d/jellyfin.list

sudo apt update
sudo apt install jellyfin -y
#+end_src

** start and enable Jellyfin
#+begin_src
sudo systemctl enable jellyfin
sudo systemctl start jellyfin
#+end_src

** access Jellyfin

access the setup wizard

*** Open:
#+begin_src
http://<raspberrypi-ip>:8096
#+end_src

*** If you're on the Pi itself:
#+begin_src
http://localhost:8096
#+end_src

* nginx setup

** Site Configuration


#+INCLUDE: "nginx.org::#jellyfin-conf" :only-contents t

** Enable Site & Restart
#+begin_src bash
sudo ln -s /etc/nginx/sites-available/forgejo /etc/nginx/sites-enabled/
sudo nginx -t && sudo systemctl reload nginx
#+end_src

** Enable HTTPS with Certbot
#+begin_src bash
sudo certbot --nginx -d git.ronnyabraham.com
#+end_src

** First-Time Setup
- Visit: https://forgejo.ronnyabraham.com
- Create the `git-admin` user and initialize your first repository.
