Bonjour,
Voici comment installer Jellyfin.
Installer les dépendances :
apt install -y nginx curl certbot python3-certbot-nginx
systemctl enable --now nginx
Installer Jellyfin :
Debian
curl https://repo.jellyfin.org/install-debuntu.sh | bash
Arch Linux / Manjaro
pacman -S jellyfin-server jellyfin-web jellyfin-ffmpeg
Alpine
apk add jellyfin jellyfin-web
Nginx avec Jellyfin :
nano /etc/nginx/conf.d/jellyfin.conf
server {
listen 80 default_server;
server_name _;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl http2;
server_name jellyfin.my_domain.com;
access_log /var/log/nginx/jellyfin-access.log;
error_log /var/log/nginx/jellyfin-error.log error;
# SSL Configuration
ssl_certificate /root/.ssl/jellyfin.my_domain.com.crt;
ssl_certificate_key /root/.ssl/jellyfin.my_domain.com.key;
ssl_session_cache shared:SSL:10m;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ecdh_curve secp384r1;
ssl_prefer_server_ciphers off;
ssl_ciphers "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384";
ssl_session_timeout 10m;
ssl_session_tickets off;
ssl_stapling on;
ssl_stapling_verify on;
resolver 1.1.1.1 9.9.9.9;
resolver_timeout 5s;
# See https://hstspreload.org/ before uncommenting the line below.
# add_header Strict-Transport-Security "max-age=15768000; preload;";
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains";
add_header X-Frame-Options DENY;
add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block";
add_header X-Robots-Tag none;
add_header Content-Security-Policy "frame-ancestors 'self'";
add_header X-Frame-Options DENY;
add_header Referrer-Policy same-origin;
location / {
# Proxy main Jellyfin traffic
proxy_pass http://localhost:8096/;
proxy_set_header Host $host;
proxy_buffering off;
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;
proxy_set_header X-Forwarded-Protocol $scheme;
proxy_set_header X-Forwarded-Host $http_host;
}
location /socket {
# Proxy Jellyfin Websockets traffic
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_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;
proxy_set_header X-Forwarded-Protocol $scheme;
proxy_set_header X-Forwarded-Host $http_host;
}
}
Configurer Jellyfin : (Optionnel)
systemctl restart nginx
certbot --nginx -d jellyfin.my_domain.com
Voilà vous pouvez vous connecter sur votre application.