Merge QYG2297248353/appstore-1panel into pooneyy/1Panel-Appstore
This commit is contained in:
69
apps/stream-rec/0.7.2/data.yml
Normal file
69
apps/stream-rec/0.7.2/data.yml
Normal file
@@ -0,0 +1,69 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: "/home/stream-rec"
|
||||
edit: true
|
||||
envKey: STREAM_REC_ROOT_PATH
|
||||
labelZh: 数据持久化路径
|
||||
labelEn: Data persistence path
|
||||
required: true
|
||||
type: text
|
||||
- default: 15275
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelZh: WebUI 端口
|
||||
labelEn: WebUI port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: 12555
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_API
|
||||
labelZh: API 端口
|
||||
labelEn: API port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: "stream-rec"
|
||||
disabled: true
|
||||
envKey: LOGIN_USERNAME
|
||||
labelZh: 默认用户名
|
||||
labelEn: Default Username
|
||||
required: true
|
||||
type: text
|
||||
- default: "stream-rec"
|
||||
edit: false
|
||||
envKey: LOGIN_SECRET
|
||||
labelZh: 登录密码 (初始化)
|
||||
labelEn: Login Password (Initialization)
|
||||
required: true
|
||||
random: true
|
||||
type: password
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: AUTH_SECRET
|
||||
labelZh: 加密密钥
|
||||
labelEn: Encryption Key
|
||||
required: true
|
||||
random: true
|
||||
type: text
|
||||
- default: "http://127.0.0.1:15275"
|
||||
edit: true
|
||||
envKey: NEXT_PUBLIC_BASE_URL
|
||||
labelZh: 访问域名
|
||||
labelEn: Access Domain
|
||||
required: true
|
||||
type: text
|
||||
- default: "ws://127.0.0.1:12555/live/update"
|
||||
edit: true
|
||||
envKey: WS_API_URL
|
||||
labelZh: WebSocket API 地址
|
||||
labelEn: WebSocket API URL
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: HTTP_PROXY
|
||||
labelZh: 网络代理
|
||||
labelEn: Network Proxy
|
||||
required: false
|
||||
type: text
|
||||
49
apps/stream-rec/0.7.2/docker-compose.yml
Normal file
49
apps/stream-rec/0.7.2/docker-compose.yml
Normal file
@@ -0,0 +1,49 @@
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
|
||||
services:
|
||||
stream-rec-backend:
|
||||
image: streamrec/stream-rec:v0.7.2
|
||||
container_name: ${CONTAINER_NAME}-backend
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_API}:12555
|
||||
env_file:
|
||||
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||
volumes:
|
||||
- ${STREAM_REC_ROOT_PATH}/records:/opt/records
|
||||
- ${STREAM_REC_ROOT_PATH}/rclone:/root/.config/rclone
|
||||
- ${STREAM_REC_ROOT_PATH}/download:/download
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
- HTTPS_PROXY=${HTTP_PROXY}
|
||||
- LOG_LEVEL=INFO
|
||||
- DB_PATH=/opt/records
|
||||
- DOWNLOAD_PATH=/download
|
||||
- PGID=1000
|
||||
- PUID=1000
|
||||
|
||||
stream-rec-frontend:
|
||||
depends_on:
|
||||
- stream-rec-backend
|
||||
image: streamrec/stream-rec-front:v0.7.2
|
||||
container_name: ${CONTAINER_NAME}
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:15275
|
||||
env_file:
|
||||
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
- API_URL=http://stream-rec-backend:12555/api
|
||||
2
apps/stream-rec/0.7.2/envs/default.env
Normal file
2
apps/stream-rec/0.7.2/envs/default.env
Normal file
@@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
ENV_FILE=.env
|
||||
2
apps/stream-rec/0.7.2/envs/global.env
Normal file
2
apps/stream-rec/0.7.2/envs/global.env
Normal file
@@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
TZ=Asia/Shanghai
|
||||
17
apps/stream-rec/0.7.2/scripts/init.sh
Normal file
17
apps/stream-rec/0.7.2/scripts/init.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
# setup-1 add default values
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
sed -i '/^GLOBAL_ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
10
apps/stream-rec/0.7.2/scripts/uninstall.sh
Normal file
10
apps/stream-rec/0.7.2/scripts/uninstall.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
17
apps/stream-rec/0.7.2/scripts/upgrade.sh
Normal file
17
apps/stream-rec/0.7.2/scripts/upgrade.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
# setup-1 add default values
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
sed -i '/^GLOBAL_ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
57
apps/stream-rec/README.md
Normal file
57
apps/stream-rec/README.md
Normal file
@@ -0,0 +1,57 @@
|
||||
# Stream-Rec
|
||||
|
||||
Stream-rec 是一个自动录制各种直播平台的工具。
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
## 特性
|
||||
|
||||
基于 Kotlin, Ktor, 和 ffmpeg。
|
||||
|
||||
+ 自动录播,可配置录制质量,路径,格式,并发量,分段录制(时间或文件大小),分段上传,根据直播标题和开始时间自动命名文件。
|
||||
+ 自动弹幕录制(XML格式),可使用 DanmakuFactory 进行弹幕转换,或配合AList来实现弹幕自动挂载。
|
||||
+ 使用 SQLite 持久化存储录播和上传信息
|
||||
+ 支持 Rclone 上传到云存储
|
||||
+ 使用 Web 界面进行配置
|
||||
+ 支持 Docker
|
||||
|
||||
## 直播平台支持列表
|
||||
|
||||
| 平台 | 录制 | 弹幕 | 链接格式 |
|
||||
|---------|----|----|-----------------------------------------------|
|
||||
| 抖音 | ✅ | ✅ | `https://www.live.douyin.com/{抖音id}` |
|
||||
| 斗鱼 | ✅ | ✅ | `https://www.douyu.com/{直播间}` |
|
||||
| 虎牙 | ✅ | ✅ | `https://www.huya.com/{直播间}` |
|
||||
| PandaTV | ✅ | ✅ | `https://www.pandalive.co.kr/live/play/{直播间}` |
|
||||
| Twitch | ✅ | ✅ | `https://www.twitch.tv/{直播间}` |
|
||||
|
||||
## 安装说明
|
||||
|
||||
> 默认账户
|
||||
>
|
||||
> 用户名:stream-rec
|
||||
>
|
||||
> 密码:stream-rec 或 `登录密码 (初始化)` 配置
|
||||
|
||||
### 必须修改配置
|
||||
|
||||
+ `WebSocket API 地址`
|
||||
|
||||
默认值:`ws://stream-rec-backend:12555/live/update` 或 `ws://127.0.0.1:12555/live/update`
|
||||
|
||||
需要获取:
|
||||
|
||||
+ 宿主机 IP 地址
|
||||
+ 配置项 `API 端口`, 默认值:`12555`
|
||||
|
||||
填写格式:`ws://{宿主机 IP 地址}:{API 端口}/live/update`
|
||||
|
||||
+ `访问域名`
|
||||
|
||||
服务跳转地址,用于跳转到 Web 界面
|
||||
|
||||
---
|
||||
|
||||

|
||||
15
apps/stream-rec/data.yml
Normal file
15
apps/stream-rec/data.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
additionalProperties:
|
||||
key: stream-rec
|
||||
name: Stream Rec
|
||||
tags:
|
||||
- WebSite
|
||||
- Tool
|
||||
- Local
|
||||
shortDescZh: 自动流媒体录制工具
|
||||
shortDescEn: Automatic streaming media recording tool
|
||||
type: website
|
||||
crossVersionUpdate: true
|
||||
limit: 0
|
||||
website: https://github.com/hua0512/stream-rec/
|
||||
github: https://github.com/hua0512/stream-rec/
|
||||
document: https://github.com/hua0512/stream-rec/
|
||||
69
apps/stream-rec/dev/data.yml
Normal file
69
apps/stream-rec/dev/data.yml
Normal file
@@ -0,0 +1,69 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: "/home/stream-rec"
|
||||
edit: true
|
||||
envKey: STREAM_REC_ROOT_PATH
|
||||
labelZh: 数据持久化路径
|
||||
labelEn: Data persistence path
|
||||
required: true
|
||||
type: text
|
||||
- default: 15275
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelZh: WebUI 端口
|
||||
labelEn: WebUI port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: 12555
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_API
|
||||
labelZh: API 端口
|
||||
labelEn: API port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: "stream-rec"
|
||||
disabled: true
|
||||
envKey: LOGIN_USERNAME
|
||||
labelZh: 默认用户名
|
||||
labelEn: Default Username
|
||||
required: true
|
||||
type: text
|
||||
- default: "stream-rec"
|
||||
edit: false
|
||||
envKey: LOGIN_SECRET
|
||||
labelZh: 登录密码 (初始化)
|
||||
labelEn: Login Password (Initialization)
|
||||
required: true
|
||||
random: true
|
||||
type: password
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: AUTH_SECRET
|
||||
labelZh: 加密密钥
|
||||
labelEn: Encryption Key
|
||||
required: true
|
||||
random: true
|
||||
type: text
|
||||
- default: "http://127.0.0.1:15275"
|
||||
edit: true
|
||||
envKey: NEXT_PUBLIC_BASE_URL
|
||||
labelZh: 访问域名
|
||||
labelEn: Access Domain
|
||||
required: true
|
||||
type: text
|
||||
- default: "ws://127.0.0.1:12555/live/update"
|
||||
edit: true
|
||||
envKey: WS_API_URL
|
||||
labelZh: WebSocket API 地址
|
||||
labelEn: WebSocket API URL
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: HTTP_PROXY
|
||||
labelZh: 网络代理
|
||||
labelEn: Network Proxy
|
||||
required: false
|
||||
type: text
|
||||
49
apps/stream-rec/dev/docker-compose.yml
Normal file
49
apps/stream-rec/dev/docker-compose.yml
Normal file
@@ -0,0 +1,49 @@
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
|
||||
services:
|
||||
stream-rec-backend:
|
||||
image: streamrec/stream-rec:dev
|
||||
container_name: ${CONTAINER_NAME}-backend
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_API}:12555
|
||||
env_file:
|
||||
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||
volumes:
|
||||
- ${STREAM_REC_ROOT_PATH}/records:/opt/records
|
||||
- ${STREAM_REC_ROOT_PATH}/rclone:/root/.config/rclone
|
||||
- ${STREAM_REC_ROOT_PATH}/download:/download
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
- HTTPS_PROXY=${HTTP_PROXY}
|
||||
- LOG_LEVEL=INFO
|
||||
- DB_PATH=/opt/records
|
||||
- DOWNLOAD_PATH=/download
|
||||
- PGID=1000
|
||||
- PUID=1000
|
||||
|
||||
stream-rec-frontend:
|
||||
depends_on:
|
||||
- stream-rec-backend
|
||||
image: streamrec/stream-rec-front:dev
|
||||
container_name: ${CONTAINER_NAME}
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:15275
|
||||
env_file:
|
||||
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
- API_URL=http://stream-rec-backend:12555/api
|
||||
2
apps/stream-rec/dev/envs/default.env
Normal file
2
apps/stream-rec/dev/envs/default.env
Normal file
@@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
ENV_FILE=.env
|
||||
2
apps/stream-rec/dev/envs/global.env
Normal file
2
apps/stream-rec/dev/envs/global.env
Normal file
@@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
TZ=Asia/Shanghai
|
||||
17
apps/stream-rec/dev/scripts/init.sh
Normal file
17
apps/stream-rec/dev/scripts/init.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
# setup-1 add default values
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
sed -i '/^GLOBAL_ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
10
apps/stream-rec/dev/scripts/uninstall.sh
Normal file
10
apps/stream-rec/dev/scripts/uninstall.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
17
apps/stream-rec/dev/scripts/upgrade.sh
Normal file
17
apps/stream-rec/dev/scripts/upgrade.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
# setup-1 add default values
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
sed -i '/^GLOBAL_ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
69
apps/stream-rec/latest/data.yml
Normal file
69
apps/stream-rec/latest/data.yml
Normal file
@@ -0,0 +1,69 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: "/home/stream-rec"
|
||||
edit: true
|
||||
envKey: STREAM_REC_ROOT_PATH
|
||||
labelZh: 数据持久化路径
|
||||
labelEn: Data persistence path
|
||||
required: true
|
||||
type: text
|
||||
- default: 15275
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelZh: WebUI 端口
|
||||
labelEn: WebUI port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: 12555
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_API
|
||||
labelZh: API 端口
|
||||
labelEn: API port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: "stream-rec"
|
||||
disabled: true
|
||||
envKey: LOGIN_USERNAME
|
||||
labelZh: 默认用户名
|
||||
labelEn: Default Username
|
||||
required: true
|
||||
type: text
|
||||
- default: "stream-rec"
|
||||
edit: false
|
||||
envKey: LOGIN_SECRET
|
||||
labelZh: 登录密码 (初始化)
|
||||
labelEn: Login Password (Initialization)
|
||||
required: true
|
||||
random: true
|
||||
type: password
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: AUTH_SECRET
|
||||
labelZh: 加密密钥
|
||||
labelEn: Encryption Key
|
||||
required: true
|
||||
random: true
|
||||
type: text
|
||||
- default: "http://127.0.0.1:15275"
|
||||
edit: true
|
||||
envKey: NEXT_PUBLIC_BASE_URL
|
||||
labelZh: 访问域名
|
||||
labelEn: Access Domain
|
||||
required: true
|
||||
type: text
|
||||
- default: "ws://127.0.0.1:12555/live/update"
|
||||
edit: true
|
||||
envKey: WS_API_URL
|
||||
labelZh: WebSocket API 地址
|
||||
labelEn: WebSocket API URL
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: HTTP_PROXY
|
||||
labelZh: 网络代理
|
||||
labelEn: Network Proxy
|
||||
required: false
|
||||
type: text
|
||||
49
apps/stream-rec/latest/docker-compose.yml
Normal file
49
apps/stream-rec/latest/docker-compose.yml
Normal file
@@ -0,0 +1,49 @@
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
|
||||
services:
|
||||
stream-rec-backend:
|
||||
image: streamrec/stream-rec:latest
|
||||
container_name: ${CONTAINER_NAME}-backend
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_API}:12555
|
||||
env_file:
|
||||
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||
volumes:
|
||||
- ${STREAM_REC_ROOT_PATH}/records:/opt/records
|
||||
- ${STREAM_REC_ROOT_PATH}/rclone:/root/.config/rclone
|
||||
- ${STREAM_REC_ROOT_PATH}/download:/download
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
- HTTPS_PROXY=${HTTP_PROXY}
|
||||
- LOG_LEVEL=INFO
|
||||
- DB_PATH=/opt/records
|
||||
- DOWNLOAD_PATH=/download
|
||||
- PGID=1000
|
||||
- PUID=1000
|
||||
|
||||
stream-rec-frontend:
|
||||
depends_on:
|
||||
- stream-rec-backend
|
||||
image: streamrec/stream-rec-front:latest
|
||||
container_name: ${CONTAINER_NAME}
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:15275
|
||||
env_file:
|
||||
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
- API_URL=http://stream-rec-backend:12555/api
|
||||
2
apps/stream-rec/latest/envs/default.env
Normal file
2
apps/stream-rec/latest/envs/default.env
Normal file
@@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
ENV_FILE=.env
|
||||
2
apps/stream-rec/latest/envs/global.env
Normal file
2
apps/stream-rec/latest/envs/global.env
Normal file
@@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
TZ=Asia/Shanghai
|
||||
17
apps/stream-rec/latest/scripts/init.sh
Normal file
17
apps/stream-rec/latest/scripts/init.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
# setup-1 add default values
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
sed -i '/^GLOBAL_ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
10
apps/stream-rec/latest/scripts/uninstall.sh
Normal file
10
apps/stream-rec/latest/scripts/uninstall.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
17
apps/stream-rec/latest/scripts/upgrade.sh
Normal file
17
apps/stream-rec/latest/scripts/upgrade.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
# setup-1 add default values
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
sed -i '/^GLOBAL_ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
BIN
apps/stream-rec/logo.png
Normal file
BIN
apps/stream-rec/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.4 KiB |
69
apps/stream-rec/main/data.yml
Normal file
69
apps/stream-rec/main/data.yml
Normal file
@@ -0,0 +1,69 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: "/home/stream-rec"
|
||||
edit: true
|
||||
envKey: STREAM_REC_ROOT_PATH
|
||||
labelZh: 数据持久化路径
|
||||
labelEn: Data persistence path
|
||||
required: true
|
||||
type: text
|
||||
- default: 15275
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelZh: WebUI 端口
|
||||
labelEn: WebUI port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: 12555
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_API
|
||||
labelZh: API 端口
|
||||
labelEn: API port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: "stream-rec"
|
||||
disabled: true
|
||||
envKey: LOGIN_USERNAME
|
||||
labelZh: 默认用户名
|
||||
labelEn: Default Username
|
||||
required: true
|
||||
type: text
|
||||
- default: "stream-rec"
|
||||
edit: false
|
||||
envKey: LOGIN_SECRET
|
||||
labelZh: 登录密码 (初始化)
|
||||
labelEn: Login Password (Initialization)
|
||||
required: true
|
||||
random: true
|
||||
type: password
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: AUTH_SECRET
|
||||
labelZh: 加密密钥
|
||||
labelEn: Encryption Key
|
||||
required: true
|
||||
random: true
|
||||
type: text
|
||||
- default: "http://127.0.0.1:15275"
|
||||
edit: true
|
||||
envKey: NEXT_PUBLIC_BASE_URL
|
||||
labelZh: 访问域名
|
||||
labelEn: Access Domain
|
||||
required: true
|
||||
type: text
|
||||
- default: "ws://127.0.0.1:12555/live/update"
|
||||
edit: true
|
||||
envKey: WS_API_URL
|
||||
labelZh: WebSocket API 地址
|
||||
labelEn: WebSocket API URL
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: HTTP_PROXY
|
||||
labelZh: 网络代理
|
||||
labelEn: Network Proxy
|
||||
required: false
|
||||
type: text
|
||||
49
apps/stream-rec/main/docker-compose.yml
Normal file
49
apps/stream-rec/main/docker-compose.yml
Normal file
@@ -0,0 +1,49 @@
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
|
||||
services:
|
||||
stream-rec-backend:
|
||||
image: streamrec/stream-rec:main
|
||||
container_name: ${CONTAINER_NAME}-backend
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_API}:12555
|
||||
env_file:
|
||||
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||
volumes:
|
||||
- ${STREAM_REC_ROOT_PATH}/records:/opt/records
|
||||
- ${STREAM_REC_ROOT_PATH}/rclone:/root/.config/rclone
|
||||
- ${STREAM_REC_ROOT_PATH}/download:/download
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
- HTTPS_PROXY=${HTTP_PROXY}
|
||||
- LOG_LEVEL=INFO
|
||||
- DB_PATH=/opt/records
|
||||
- DOWNLOAD_PATH=/download
|
||||
- PGID=1000
|
||||
- PUID=1000
|
||||
|
||||
stream-rec-frontend:
|
||||
depends_on:
|
||||
- stream-rec-backend
|
||||
image: streamrec/stream-rec-front:main
|
||||
container_name: ${CONTAINER_NAME}
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:15275
|
||||
env_file:
|
||||
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
- API_URL=http://stream-rec-backend:12555/api
|
||||
2
apps/stream-rec/main/envs/default.env
Normal file
2
apps/stream-rec/main/envs/default.env
Normal file
@@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
ENV_FILE=.env
|
||||
2
apps/stream-rec/main/envs/global.env
Normal file
2
apps/stream-rec/main/envs/global.env
Normal file
@@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
TZ=Asia/Shanghai
|
||||
17
apps/stream-rec/main/scripts/init.sh
Normal file
17
apps/stream-rec/main/scripts/init.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
# setup-1 add default values
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
sed -i '/^GLOBAL_ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
10
apps/stream-rec/main/scripts/uninstall.sh
Normal file
10
apps/stream-rec/main/scripts/uninstall.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
17
apps/stream-rec/main/scripts/upgrade.sh
Normal file
17
apps/stream-rec/main/scripts/upgrade.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
# setup-1 add default values
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
sed -i '/^GLOBAL_ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
Reference in New Issue
Block a user