Processed apps directory via GitHub Actions

This commit is contained in:
QYG2297248353
2024-11-28 09:57:19 +00:00
parent 373a561487
commit 275d5be658
1857 changed files with 56700 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
# 数据持久化路径 [必填]
STREAM_REC_ROOT_PATH=/home/stream-rec
# WebUI 端口 [必填]
PANEL_APP_PORT_HTTP=15275
# API 端口 [必填]
PANEL_APP_PORT_API=12555
# 登录密码 (初始化) [必填]
LOGIN_SECRET=stream-rec
# NextAuth 加密密钥 [必填]
NEXTAUTH_SECRET=
# NextAuth 服务器地址 [必填]
NEXTAUTH_URL=http://localhost:15275/
# API 地址 [必填]
API_URL=http://stream-rec-backend:12555/api
# WebSocket API 地址 [必填]
WS_API_URL=ws://stream-rec-backend:12555/live/update
# 网络代理
HTTP_PROXY=
+69
View 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"
edit: false
envKey: LOGIN_SECRET
labelZh: 登录密码 (初始化)
labelEn: Login Password (Initialization)
required: true
random: true
type: text
- default: ""
edit: true
envKey: NEXTAUTH_SECRET
labelZh: NextAuth 加密密钥
labelEn: NextAuth Secret
required: true
random: true
type: text
- default: "http://localhost:15275/"
edit: true
envKey: NEXTAUTH_URL
labelZh: NextAuth 服务器地址
labelEn: NextAuth Server URL
required: true
type: text
- default: "http://stream-rec-backend:12555/api"
disabled: true
envKey: API_URL
labelZh: API 地址
labelEn: API URL
required: true
type: text
- default: "ws://stream-rec-backend: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
@@ -0,0 +1,39 @@
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:v0.7.2
labels:
createdBy: Apps
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_API}:12555
restart: always
volumes:
- ${STREAM_REC_ROOT_PATH}/records:/opt/records
- ${STREAM_REC_ROOT_PATH}/download:/download
stream-rec-frontend:
container_name: stream-rec
depends_on:
- stream-rec-backend
env_file:
- ./envs/global.env
- .env
image: streamrec/stream-rec-front:v0.7.2
labels:
createdBy: Apps
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:15275
restart: always
@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
ENV_FILE=.env
@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
TZ=Asia/Shanghai
+17
View 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
@@ -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