# 安装 container manger

  • 套件中心直接安装即可

# 配置代理

  • 在控制面板 —— 网络 —— 常规 勾选代理服务器 地址写你 windows 的局域网 IP 端口写 v2rayn 的 http 端口 勾选对于本地地址不使用代理服务器

# 安装 jellyfin

  • 注册表中搜索 jellyfin 并下载
  • 存储空间映射 电影文件夹 存放证书的文件夹
  • 端口映射 左右两侧保持一致即可 包括 http https 端口
  • 环境变量设置
ALL_PROXY
http://你的windows的ip:10809
  • 最后启动容器即可

# 安装插件

  • 进入 Jellyfin 控制台 > 插件目录 / 存储库 > 设置,点击添加
  • 输入存储库名称:MetaTube
  • 输入存储库 URL:https://raw.githubusercontent.com/metatube-community/jellyfin-plugin-metatube/dist/manifest.json
  • 在插件目录下找到 MetaTube,点击安装
  • 重启 Jellyfin

# 设置插件

  • 填入 metatube 后端地址即可

# 安装 alist—aria2 docker 版

  • 映像中从 url 导入 https://registry.hub.docker.com/r/xhofe/alist-aria2
  • 端口映射
  • 文件映射(包括电影文件 存放 alist 的配置的文件)

# 申请并上传证书

# vps 上申请证书

  • 解析域名到你的 vps 的 IP
  • 安装 acme 申请证书
curl https://get.acme.sh | sh
apt install socat
ln -s  /root/.acme.sh/acme.sh /usr/local/bin/acme.sh
acme.sh --set-default-ca --server letsencrypt
acme.sh  --issue -d 你的域名 --standalone -k ec-256
acme.sh --installcert -d 你的域名 --ecc  --key-file   /root/shu/server.key   --fullchain-file /root/shu/server.crt

# 在 vps 上将证书和私钥转为.pfx 文件

  • 转到存放证书的路径下执行命令
openssl pkcs12 -export -out server.pfx -inkey server.key -in server.crt -certfile /etc/ssl/certs/ca-certificates.crt
  • 按照要求设置证书密码

# 给 nas 上传证书

  • 打开控制面板 —— 安全性 —— 证书 新增 按照步骤上传证书即可 并设置为默认证书
  • 打开设置 证书选为你的域名

# 给 alist 上传证书

  • 在存放 alist 配置的目录下上传证书和私钥

# 将.pfx 文件上传到前面映射好的证书文件夹

# 开启 https

# jellyfin 开启 https

  • 网络
    启用 https 强制 https 自定义 SSL 证书路径选择映射好的证书文件夹里的 pfx 文件
    填入证书密码
  • 路由器设置端口映射将 8920 这个 https 端口映射到外网
  • 重启 jellyfin
  • 访问 https:// 你的域名:路由器映射的 https 端口

# nas 面板开启 https

  • 控制面板 —— 登录门户 网页服务中将 http 重定向到 https 打勾
  • 路由器设置端口映射将 5001 这个 https 端口映射到外网
  • 访问 https:// 你的域名:路由器映射的 https 端口

# alist 开启 https

  • 修改 config.json
  • 设置 https 端口
  • 填入证书路径和私钥路径
  • 访问 https:// 你的域名:路由器映射的 https 端口