跳到主要内容

在群晖 Synology 上运行 pixman 及 nginx

  • 新帖
  • 热门
  • 精选

在群晖 Synology 上运行 pixman 及 nginx

coding 2y ago in 技术 · 0 views
本帖已被管理员设置为精华贴

以下演示均在 Synology DSM Demo 操作,Demo 演示地址 https://demo.synology.com/zh-hk/dsm

创建项目文件夹

在 File Station 打开 docker 目录 (其他目录也可以),新建一个 pixman 文件夹,分别创建以下文件和文件夹

compose.yaml (environment ports 等参数根据实际情况修改)

services:
  pixman:
    image: pixman/pixman:latest
    restart: always
    container_name: pixman
    environment:
      - http_proxy=http://192.168.50.50:7890
      - https_proxy=http://192.168.50.50:7890
      - MYTVSUPER_TOKEN=YOUR_TOKEN
    ports:
      - 5050:5000
    volumes:
       - ./m3u:/app/app/data/m3u
  pixman-nginx:
    image: nginx:latest
    restart: always
    container_name: pixman-nginx
    ports:
      - 8000:8000
    volumes:
       - ./pixman-nginx.conf:/etc/nginx/conf.d/pixman-nginx.conf

pixman-nginx.conf

server {
    listen 8000 default_server;
    resolver 223.5.5.5;

    location ~ ^/tptv/(?<path>.*) {
        set $ua 'okhttp/3';
        if ($arg_ua) {
            set $ua $arg_ua;
        }
        set $target_url http://tptvo.mobaibox.com/$path$is_args$args;

        proxy_pass $target_url;
        proxy_set_header User-Agent $ua;
    }

    location ~ ^/(?<cdn>ystenlive|bestlive|wasulive|fifalive|hnbblive)(?<path>.*) {
        set $target_url http://pixman.io.$cdn.dnsany.com$path$is_args$args;

        proxy_pass $target_url;
        proxy_set_header Host cache.ott.$cdn.itv.cmvideo.cn;
    }

    location / {
        return 200 'ok';
    }
}

m3u 目录是为了统一管理其他直播源列表,将 .m3u 文件放入即可。

启动项目

打开套件 Container Manager,新增项目,项目名称随便写,路径选择 docker/pixman,因为我们已经预先创建好了 compose.yaml 文件,所以选择 使用现有的 docker-compose.yml 来创建项目。

然后点击下一步,网站门户设置可以不管,点击完成,等待项目构建

在构建的时候可能遇到 pull 失败的情况,参考文章 为群晖 Container Manager 配置代理 。

构建完成后查看项目详细数据,使用 http://群晖ip:5050/tptv_proxy.m3u?server=群晖ip:8000 即可订阅 TPTV 直播源,其他同理。

更新镜像

当镜像有新版本的时候,首先停止项目

然后在 操作 - 清除 来删除容器和创建的网络

前往 映像 删除 pixman/pixman

在 项目 pixman 操作选择构建

更新完成

以上操作都在网页端完成,如果你熟悉 Linux 操作,也可以直接 SSH 到群晖的终端来部署。

  • 引用文章
  • 被文章引用
Docker 镜像 pixman/pixman 使用说明
Docker 镜像 pixman/pixman 使用说明 群晖搭建容器 TPTV 和 ITV 都无法播放 pixman 新增 Hamivideo 支持
adawn #31 2024年09月06日

博主,请问一下,看4Gtv几个星期流畅正常,最近能看,但一直卡,是需要更新吗

回复此楼 修改
coding #32 2024年09月07日
对 adawn #31 回复

最好更新下

回复此楼 修改
rain #33 2024年09月26日

博主你好,我是使用docker的UI界面安装的。安装好了之后,aptv订阅地址之后有列表出现,但是点击具体某个电视频道时无法播放。在pixman的docker日志中报错:[2024-09-26 07:03:23,339] ERROR in app: Failed to get account info, retrying... 请问是什么原因?

回复此楼 修改
1 个赞
rain #34 2024年09月26日
对 rain #33 回复

部署时 environment 我并没有设置。

回复此楼 修改
1 个赞
coding #35 2024年09月26日
对 rain #33 回复

tptv 已经挂了

回复此楼 修改
rain #36 2024年09月27日
对 coding #35 回复

昨天itv也不行,今天itv可以了

回复此楼 修改
bingbaicai #37 2024年10月07日

我创建好了,把m3u这个http://群晖ip:5050/tptv_proxy.m3u?server=群晖ip:8000放到tivimate里面 能读取频道,但是播放不了

看了下pixman的日志 提示 ERROR in app: Failed to get account info, retrying...

回复此楼 修改
bingbaicai #38 2024年10月08日

今天测试了下xxx:port/tptv.m3u,导入到aptv里面 能读取频道,但是播放不了 [2024-10-07 13:44:03,053] ERROR in app: Failed to get account info, retrying...

[2024-10-07 23:39:11,302] ERROR in app: Failed to get account info, retrying...

[2024-10-07 23:39:11,576] ERROR in app: Failed to get account info, retrying...

[2024-10-07 23:39:11,695] ERROR in app: Failed to get account info, retrying...

[2024-10-07 23:39:14,394] ERROR in app: Failed to get account info, retrying...

[2024-10-07 23:39:14,660] ERROR in app: Failed to get account info, retrying...

[2024-10-07 23:39:14,783] ERROR in app: Failed to get account info, retrying...

[2024-10-07 23:39:17,476] ERROR in app: Failed to get account info, retrying...

[2024-10-07 23:39:17,745] ERROR in app: Failed to get account info, retrying...

[2024-10-07 23:39:17,869] ERROR in app: Failed to get account info, retrying...

[2024-10-07 23:39:21,133] ERROR in app: Failed to get account info, retrying...

[2024-10-07 23:39:24,215] ERROR in app: Failed to get account info, retrying...

[2024-10-07 23:39:27,300] ERROR in app: Failed to get account info, retrying...

[2024-10-07 23:39:32,581] ERROR in app: Failed to get account info, retrying...

[2024-10-07 23:39:32,582] ERROR in app: Failed to get account info, retrying...

[2024-10-07 23:39:35,674] ERROR in app: Failed to get account info, retrying...

[2024-10-07 23:39:35,676] ERROR in app: Failed to get account info, retrying...

[2024-10-07 23:39:37,671] ERROR in app: Failed to get account info, retrying...

[2024-10-07 23:39:38,765] ERROR in app: Failed to get account info, retrying...

[2024-10-07 23:39:38,766] ERROR in app: Failed to get account info, retrying...

[2024-10-07 23:39:40,759] ERROR in app: Failed to get account info, retrying...

[2024-10-07 23:39:43,841] ERROR in app: Failed to get account info, retrying...

回复此楼 修改
bingbaicai #39 2024年10月08日
对 rain #34 回复

我情况和你一样,请问你的问题解决了没 兄台。

回复此楼 修改
coding #40 2024年10月08日
对 bingbaicai #38 回复

最新版已修复

回复此楼 修改
41 楼 已删除
mapleshadow #42 2024年10月21日

感谢兄弟的付出!想问下,群晖运行NG不是必须的吧?为何需要单独下个nginx呢?

回复此楼 修改
tianwei217 #43 2024年12月03日

照上面教学获取的直播源都指向pixman的容器。请问是通过镜像容器拉取直播吗?

回复此楼 修改
WWW #44 2024年12月14日
对 coding #40 回复

今天更新了最新版的pixman镜像, 还是遇上如下错误log ( 例如4gtv 里面的history 频道(第126频道)打不开 , 可是民视(第一频道)则没有问题 )

2024-12-14 02:21:38,268] ERROR in app: Request failed: 530 Server Error:  for url: http://pixman.io.itv.dnsany.com/000000001000/6000000001000015875/1.m3u8?channel-id=wasusyt&Contentid=6000000001000015875&livemode=1&stbId=3&version=1.0&owaccmark=6000000001000015875&owchid=wasusyt&owsid=7306791734142897630&AuthInfo=YkXQEaGDc4dXaTNF8ojswi8QguT3kySfkGERftvAPjt8yuqPNpBy5R%2Bet0TuidiKkaC1CDRTDpGd96X6vdHIsg%3D%3D, retrying...
[2024-12-14 02:21:38,269] ERROR in app: Request failed after retrying

感谢指导

回复此楼 修改
  • 上一页
  • 1
  • 2
收到新回复,点击立即加载
需要 登录 后方可回复, 如果你还没有账号请 注册新账号
Coding
@coding
有事请发帖 @coding 或 联系 [email protected]
统计信息
会员
1,786
话题
259
回帖
2,955
活跃会员 查看排行
Devin
Koguan
nt01xp
jmk92
859876741
kewycjy
cnvc
kkk00011
0xyyyy
wayne630
zf7222749
zmy123
Unlovely
bos5201314
scjxx
once
wykds
LeoXD
a15ban
gally

A digital lifestyle community co-maintained by Pixer

本网站服务器由 提供,CDN 由 提供,基于 Homeland 构建,采用 Docker 部署。