在 CentOS 上部署 Jellyfin 后,“引流”通常指让更多用户访问你的媒体服务器,或通过公网安全地暴露服务。下面从基础可达性、安全暴露、用户增长三个层面说明,注意合法合规(不要用于盗版/未授权内容分发)。
CentOS 默认使用 firewalld:
sudo firewall-cmd --permanent --add-port=8096/tcp
sudo firewall-cmd --reload
(8096 是 Jellyfin 默认端口)
http://服务器IP:8096
用 Nginx + 域名
sudo dnf install nginx -y
sudo systemctl enable --now nginx
server {
listen 80;
server_name jellyfin.example.com;
location / {
proxy_pass http://127.0.0.1:8096;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}
sudo dnf install certbot python3-certbot-nginx -y
sudo certbot --nginx
✅ 效果:
https://jellyfin.example.com
适合家庭宽带:
Cloudflare Tunnel 示例:
cloudflared tunnel --url http://localhost:8096
✅ 优点:
CentOS 上 Jellyfin 引流 =
内网跑服务 + Nginx/Cloudflare 暴露 + 域名HTTPS + 用户邀请
如果你愿意,我可以: