mirror of
https://github.com/okxlin/appstore.git
synced 2025-07-14 05:12:19 +08:00
feat:添加sub-store到列表
This commit is contained in:
parent
40c618a37e
commit
9c81d7d300
61
apps/sub-store/README.md
Normal file
61
apps/sub-store/README.md
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
<div align="center">
|
||||||
|
<br>
|
||||||
|
<img width="200" src="https://raw.githubusercontent.com/cc63/ICON/main/Sub-Store.png" alt="Sub-Store">
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<h2 align="center">Sub-Store<h2>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p align="center" color="#6a737d">
|
||||||
|
Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
[](https://github.com/sub-store-org/Sub-Store/actions/workflows/main.yml)     
|
||||||
|
<a href="https://trendshift.io/repositories/4572" target="_blank"><img src="https://trendshift.io/api/badge/repositories/4572" alt="sub-store-org%2FSub-Store | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
|
||||||
|
[](https://www.buymeacoffee.com/PengYM)
|
||||||
|
|
||||||
|
Core functionalities:
|
||||||
|
|
||||||
|
1. Conversion among various formats.
|
||||||
|
2. Subscription formatting.
|
||||||
|
3. Collect multiple subscriptions in one URL.
|
||||||
|
|
||||||
|
|
||||||
|
***
|
||||||
|
## 镜像地址
|
||||||
|
|
||||||
|
- https://hub.docker.com/r/xream/sub-store
|
||||||
|
|
||||||
|
## 使用示例
|
||||||
|
|
||||||
|
### 一键配置打开 本地前端+本地后端
|
||||||
|
|
||||||
|
[`http://127.0.0.1:3001?api=http://127.0.0.1:3001/2cXaAxRGfddmGz2yx1wA`](http://127.0.0.1:3001/?api=http://127.0.0.1:3001/2cXaAxRGfddmGz2yx1wA)
|
||||||
|
|
||||||
|
意思是 后端地址为 `http://127.0.0.1:3001/2cXaAxRGfddmGz2yx1wA`
|
||||||
|
|
||||||
|
简单验证一下 `http://127.0.0.1:3001/2cXaAxRGfddmGz2yx1wA/api/utils/env` 可以看到版本信息
|
||||||
|
|
||||||
|
同样此 URL 也可以作为健康检查的 URL
|
||||||
|
|
||||||
|
## 启动
|
||||||
|
|
||||||
|
数据文件夹: `/root/sub-store-data`
|
||||||
|
|
||||||
|
端口: `3001`
|
||||||
|
|
||||||
|
监听: `127.0.0.1` // 本示例中演示的是本地版, 局域网直接访问等场景请自己设置
|
||||||
|
|
||||||
|
后端前缀: `/2cXaAxRGfddmGz2yx1wA`
|
||||||
|
|
||||||
|
定时任务: `55 23 * * *` 每天 23 点 55 分(避开部分机场后端每天0点定时重启)
|
||||||
|
|
||||||
|
> 本示例中演示的定时任务环境变量为 `SUB_STORE_CRON`, 此时使用的是系统的 `crond`; 如果有问题, 可以使用 `SUB_STORE_BACKEND_CRON`, 此时将使用 Node 版 `node-cron`
|
||||||
|
|
||||||
|
推送服务: `https://api.day.app/XXXXXXXXXXXX/[推送标题]/[推送内容]?group=SubStore&autoCopy=1&isArchive=1&sound=shake&level=timeSensitive&icon=https%3A%2F%2Fraw.githubusercontent.com%2F58xinian%2Ficon%2Fmaster%2FSub-Store1.png`
|
||||||
|
|
||||||
|
> 支持 Bark/PushPlus 等服务. 形如: `https://api.day.app/XXXXXXXXX/[推送标题]/[推送内容]?group=SubStore&autoCopy=1&isArchive=1&sound=shake&level=timeSensitive` 或 `http://www.pushplus.plus/send?token=XXXXXXXXX&title=[推送标题]&content=[推送内容]&channel=wechat` 的 URL, `[推送标题]` 和 `[推送内容]` 会被自动替换.
|
||||||
|
|
||||||
|
```
|
||||||
|
docker run -it -d --restart=always -e "SUB_STORE_PUSH_SERVICE=https://api.day.app/XXXXXXXXXXXX/[推送标题]/[推送内容]?group=SubStore&autoCopy=1&isArchive=1&sound=shake&level=timeSensitive&icon=https%3A%2F%2Fraw.githubusercontent.com%2F58xinian%2Ficon%2Fmaster%2FSub-Store1.png" -e "SUB_STORE_CRON=55 23 * * *" -e SUB_STORE_FRONTEND_BACKEND_PATH=/2cXaAxRGfddmGz2yx1wA -p 127.0.0.1:3001:3001 -v /root/sub-store-data:/opt/app/data --name sub-store xream/sub-store
|
||||||
|
```
|
19
apps/sub-store/data.yml
Normal file
19
apps/sub-store/data.yml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
name: Sub-Store
|
||||||
|
tags:
|
||||||
|
- 工具
|
||||||
|
title: 适用于 QX、Loon、Surge、Stash 和 Shadowrocket 的高级订阅管理器
|
||||||
|
description: 适用于 QX、Loon、Surge、Stash 和 Shadowrocket 的高级订阅管理器
|
||||||
|
additionalProperties:
|
||||||
|
key: sub-store
|
||||||
|
name: Sub-Store
|
||||||
|
tags:
|
||||||
|
- Tool
|
||||||
|
shortDescZh: 适用于 QX、Loon、Surge、Stash 和 Shadowrocket 的高级订阅管理器
|
||||||
|
shortDescEn: Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket
|
||||||
|
type: tool
|
||||||
|
crossVersionUpdate: true
|
||||||
|
limit: 0
|
||||||
|
recommend: 0
|
||||||
|
website: https://hub.docker.com/r/xream/sub-store
|
||||||
|
github: https://github.com/sub-store-org/Sub-Store
|
||||||
|
document: https://www.notion.so/Sub-Store-6259586994d34c11a4ced5c406264b46
|
6
apps/sub-store/latest/.env.sample
Normal file
6
apps/sub-store/latest/.env.sample
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
CONTAINER_NAME="sub-store"
|
||||||
|
PANEL_APP_PORT_HTTP="40232"
|
||||||
|
DATA_PATH="./data"
|
||||||
|
SUB_STORE_CRON="55 23 * * *"
|
||||||
|
SUB_STORE_FRONTEND_BACKEND_PATH="/2cXaAxRGfddmGz2yx1wA"
|
||||||
|
SUB_STORE_PUSH_SERVICE="https://api.day.app/XXXXXXXXXXXX/[推送标题]/[推送内容]?group=SubStore&autoCopy=1&isArchive=1&sound=shake&level=timeSensitive&icon=https%3A%2F%2Fraw.githubusercontent.com%2F58xinian%2Ficon%2Fmaster%2FSub-Store1.png"
|
38
apps/sub-store/latest/data.yml
Normal file
38
apps/sub-store/latest/data.yml
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
additionalProperties:
|
||||||
|
formFields:
|
||||||
|
- default: 40232
|
||||||
|
edit: true
|
||||||
|
envKey: PANEL_APP_PORT_HTTP
|
||||||
|
labelEn: Port
|
||||||
|
labelZh: 端口
|
||||||
|
required: true
|
||||||
|
rule: paramPort
|
||||||
|
type: number
|
||||||
|
- default: 'https://api.day.app/XXXXXXXXXXXX/[推送标题]/[推送内容]?group=SubStore&autoCopy=1&isArchive=1&sound=shake&level=timeSensitive&icon=https%3A%2F%2Fraw.githubusercontent.com%2F58xinian%2Ficon%2Fmaster%2FSub-Store1.png'
|
||||||
|
edit: true
|
||||||
|
envKey: SUB_STORE_PUSH_SERVICE
|
||||||
|
labelEn: Push Service URL
|
||||||
|
labelZh: 推送服务 URL
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: "55 23 * * *"
|
||||||
|
edit: true
|
||||||
|
envKey: SUB_STORE_CRON
|
||||||
|
labelEn: Cron Schedule
|
||||||
|
labelZh: Cron 定时任务
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: "/2cXaAxRGfddmGz2yx1wA"
|
||||||
|
edit: true
|
||||||
|
envKey: SUB_STORE_FRONTEND_BACKEND_PATH
|
||||||
|
labelEn: Frontend Backend Path
|
||||||
|
labelZh: 前端后端路径
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: "./data"
|
||||||
|
edit: true
|
||||||
|
envKey: DATA_PATH
|
||||||
|
labelEn: Data Directory
|
||||||
|
labelZh: 数据目录
|
||||||
|
required: true
|
||||||
|
type: text
|
22
apps/sub-store/latest/docker-compose.yml
Normal file
22
apps/sub-store/latest/docker-compose.yml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
sub-store:
|
||||||
|
image: xream/sub-store:latest
|
||||||
|
container_name: ${CONTAINER_NAME}
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- 1panel-network
|
||||||
|
ports:
|
||||||
|
- "${PANEL_APP_PORT_HTTP}:3001"
|
||||||
|
environment:
|
||||||
|
- SUB_STORE_PUSH_SERVICE=${SUB_STORE_PUSH_SERVICE}
|
||||||
|
- SUB_STORE_CRON=${SUB_STORE_CRON}
|
||||||
|
- SUB_STORE_FRONTEND_BACKEND_PATH=${SUB_STORE_FRONTEND_BACKEND_PATH}
|
||||||
|
volumes:
|
||||||
|
- ${DATA_PATH}:/opt/app/data
|
||||||
|
labels:
|
||||||
|
createdBy: "Apps"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
1panel-network:
|
||||||
|
external: true
|
BIN
apps/sub-store/logo.png
Normal file
BIN
apps/sub-store/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.5 KiB |
Loading…
Reference in New Issue
Block a user