Live-Torrent:在线看片

无需下载即可在线播放种子内的电影。支持磁力链/种子HASH/手动上传种子。

下面在Debian10上使用Docker安装,建议内存1G以上。此外用于安装的VPS线路要好一点。

安装docker和docker-compose:

apt -y update
apt -y install curl
curl -sSL https://get.docker.com/ | sh
systemctl start docker
systemctl enable docker
curl -L https://github.com/docker/compose/releases/download/1.25.4/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose

创建需要用到的目录和文件:

mkdir -p /opt/traefik && mkdir -p /opt/live-torrent
touch /opt/traefik/acme.json && chmod 600 /opt/traefik/acme.json

创建traefik的配置文件:

nano /opt/traefik/traefik.toml

写入如下配置(邮箱替换成你自己的)

defaultEntryPoints = ["https","http"]

[entryPoints]
  [entryPoints.http]
  address = ":80"
    [entryPoints.http.redirect]
    entryPoint = "https"
  [entryPoints.https]
  address = ":443"
  [entryPoints.https.tls]

[acme]
email = "example@qq.com"
storage = "acme.json"
entryPoint = "https"
onHostRule = true
[acme.httpChallenge]
entryPoint = "http"

创建traefik的docker-compose:

nano /opt/traefik/docker-compose.yml

写入下面的内容:

version: '3.5'

services:
    reverse-proxy:
      container_name: traefik
      image: traefik:v1.7
      command: --api --docker
      ports:
        - "80:80"
        - "443:443"
      networks:
        - traefik
      volumes:
        - /var/run/docker.sock:/var/run/docker.sock
        - /opt/traefik/traefik.toml:/traefik.toml
        - /opt/traefik/acme.json:/acme.json

networks:
    traefik:
      name: imlala

进入到docker-compose.yml所在的目录up起来即可完成traefik的配置:

cd /opt/traefik
docker-compose up -d

新建一个docker-compose.yml:

cd /opt/live-torrent && nano docker-compose.yml

写入下面的配置:

version: '3.5'

services: 
    live-torrent:
        image: davenchy/live-torrent
        container_name: live-torrent
        labels: 
            - "traefik.port=8080"
            - "traefik.frontend.rule=Host:torrent.233.fi"

networks:
    default:
        external:
            name: imlala

如果想直接用端口访问不使用traefik:

version: '3.5'

services: 
    live-torrent:
        image: davenchy/live-torrent
        container_name: live-torrent
        ports:
            - 8080:8080

up起来即可:

docker-compose up -d

演示一哈:

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注