1、allinone指令:
docker run -d --restart unless-stopped --net=host --privileged=true -p 35455:35455 --name allinone youshandefeiyang/allinone
2、配置watchtower每天凌晨两点自动监听allinone镜像更新指令:
docker run -d --name watchtower --restart unless-stopped -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower allinone -c --schedule "0 0 2 * * *"
此刻就可以直接看了:IPTV直播:http://你的IP:35455/tv.m3u
3、直播源镜像 youshandefeiyang/allinone 项目的 m3u 进行重新分组格式化:
docker run -d --restart=always -p 35456:35456 --name allinone_format yuexuangu/allinone_format:latest
http://内网IP:35456/tv.php?h=allinoneIP&p=allinonePort&m=1&t=0
请求参数说明:
h 可选参数 allinone 项目部署的内外网 IP或域名(不能使用 127.0.0.1),默认值 = 请求的内网IP
p 可选参数 allinone 项目部署的端口, 默认值 = 35455
m 可选参数 是否对频道连接进行聚合,默认值 1=聚合(强烈推荐) 0=不聚合(仅推荐不支持聚合格式的壳子使用)
t 可选参数 输出格式 默认值 0=m3u, 1=text
请求例子:
http://192.168.31.50:35456/tv.php
上面请求等同于
http://138.2.50.24:35456/tv.php?h=138.2.50.24&p=35455&m=1&t=0
http://192.168.8.1:35456/tv.php?h=192.168.8.1&p=35455&m=1&t=0
https://www.youtube.com/watch?v=WPoZiSIlr10
Comments
Post a Comment