Synced apps from source repository via GitHub Actions

This commit is contained in:
QYG2297248353
2025-02-17 03:25:12 +00:00
parent e1b8e5a022
commit 2b609f0af1
55 changed files with 614 additions and 9 deletions
+12
View File
@@ -0,0 +1,12 @@
# 数据持久化路径 [必填]
STREAM_REC_ROOT_PATH=/home/stream-rec
# API 端口 [必填]
PANEL_APP_PORT_HTTP=12555
# 登录密码 (初始化) [必填]
LOGIN_SECRET=stream-rec
# 网络代理
HTTP_PROXY=
+32
View File
@@ -0,0 +1,32 @@
additionalProperties:
formFields:
- default: "/home/stream-rec"
edit: true
envKey: STREAM_REC_ROOT_PATH
labelZh: 数据持久化路径
labelEn: Data persistence path
required: true
type: text
- default: 12555
edit: true
envKey: PANEL_APP_PORT_HTTP
labelZh: API 端口
labelEn: API port
required: true
rule: paramPort
type: number
- default: "stream-rec"
edit: false
envKey: LOGIN_SECRET
labelZh: 登录密码 (初始化)
labelEn: Login Password (Initialization)
required: true
random: true
type: text
- default: ""
edit: true
envKey: HTTP_PROXY
labelZh: 网络代理
labelEn: Network Proxy
required: false
type: text
@@ -0,0 +1,24 @@
networks:
1panel-network:
external: true
services:
stream-rec-backend:
container_name: stream-rec-backend
env_file:
- ./envs/global.env
- .env
environment:
- LOG_LEVEL=INFO
- DB_PATH=/opt/records
- DOWNLOAD_PATH=/download
image: streamrec/stream-rec:main
labels:
createdBy: Apps
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:12555
restart: always
volumes:
- ${STREAM_REC_ROOT_PATH}/records:/opt/records
- ${STREAM_REC_ROOT_PATH}/download:/download
@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
ENV_FILE=.env
@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
TZ=Asia/Shanghai
@@ -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
@@ -0,0 +1,10 @@
#!/bin/bash
if [ -f .env ]; then
source .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi
@@ -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