添加 Pixman 应用

This commit is contained in:
萌森 2024-07-28 02:13:37 +08:00
parent 1cceb8e77d
commit 2291d63391
8 changed files with 137 additions and 0 deletions

View File

@ -0,0 +1,31 @@
additionalProperties:
formFields:
- default: "/home/pixman"
edit: true
envKey: PIXMAN_ROOT_PATH
labelZh: 数据持久化路径
labelEn: Data persistence path
required: true
type: text
- default: 5000
edit: true
envKey: PANEL_APP_PORT_HTTP
labelZh: WebUI 端口
labelEn: WebUI port
required: true
rule: paramPort
type: number
- default: ""
edit: true
envKey: MYTVSUPER_TOKEN
labelZh: MyTVSuper 授权码
labelEn: MyTVSuper Token
required: false
type: text
- default: ""
edit: true
envKey: NETWORK_PROXY
labelZh: 网络代理
labelEn: Network Proxy
required: false
type: text

View File

@ -0,0 +1,23 @@
version: "3.8"
networks:
1panel-network:
external: true
services:
pixman:
image: pixman/pixman:v1.5.6
container_name: ${CONTAINER_NAME}
labels:
createdBy: "Apps"
restart: always
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:5000
env_file:
- /etc/1panel/envs/global.env
- ${ENV_FILE:-/etc/1panel/envs/default.env}
volumes:
- ${PIXMAN_ROOT_PATH}/m3u:/app/app/data/m3u
entrypoint:
- http_proxy=${NETWORK_PROXY:-}
- https_proxy=${NETWORK_PROXY:-}

View File

@ -0,0 +1,15 @@
#!/bin/bash
if [ -f .env ]; then
source .env
# setup-1 add default values
CURRENT_DIR=$(pwd)
sed -i '/^ENV_FILE=/d' .env
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi

View File

@ -0,0 +1,10 @@
#!/bin/bash
if [ -f .env ]; then
source .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi

View File

@ -0,0 +1,15 @@
#!/bin/bash
if [ -f .env ]; then
source .env
# setup-1 add default values
CURRENT_DIR=$(pwd)
sed -i '/^ENV_FILE=/d' .env
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi

25
apps/pixman/README.md Normal file
View File

@ -0,0 +1,25 @@
# Pixman
## 免责声明
本程序仅供学习或测试设备,禁止 `中国大陆用户` 使用,不得用于商业用途,否则后果自负
## 使用说明
除内置资源外,可自行挂载 `.m3u` 文件。
可挂载到 持久化目录 `m3u` 目录下,并通过 `http://{host_ip}:{port}/<文件名>.m3u` 使用。
## 快捷操作
> 清理缓存
```shell
flask clean_cache
```
> 更新 mytvsuper_tivimate.m3u 文件
```shell
flask mytvsuper_tivimate
```

18
apps/pixman/data.yml Normal file
View File

@ -0,0 +1,18 @@
name: Pixman
title: IPTV、M3U8 直播源
description: IPTV、M3U8 直播源
additionalProperties:
key: pixman
name: Pixman
tags:
- WebSite
- Media
- Local
shortDescZh: IPTV、M3U8 直播源
shortDescEn: IPTV、M3U8 直播源
type: website
crossVersionUpdate: true
limit: 0
website: https://pixman.io/
github: https://pixman.io/
document: https://pixman.io/

BIN
apps/pixman/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB