Update app version [skip ci]

This commit is contained in:
github-action update-app-version
2024-10-19 16:39:23 +00:00
parent b6fabd2729
commit c986893459
5 changed files with 0 additions and 0 deletions
+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
+41
View File
@@ -0,0 +1,41 @@
networks:
1panel-network:
external: true
services:
stream-rec-backend:
image: streamrec/stream-rec:v0.7.1
container_name: ${CONTAINER_NAME}-backend
labels:
createdBy: "Apps"
restart: always
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_API}:12555
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}/download:/download
environment:
- LOG_LEVEL=INFO
- DB_PATH=/opt/records
- DOWNLOAD_PATH=/download
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:
- /etc/1panel/envs/global.env
- ${ENV_FILE:-/etc/1panel/envs/default.env}
+15
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
@@ -0,0 +1,10 @@
#!/bin/bash
if [ -f .env ]; then
source .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi
+15
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