完善 Stream-Rec 配置

Signed-off-by: Meng Sen <qyg2297248353@gmail.com>
This commit is contained in:
2025-02-06 11:36:02 +08:00
parent ec4ee256de
commit 4092b45571
3 changed files with 26 additions and 34 deletions
+16 -16
View File
@@ -23,6 +23,13 @@ additionalProperties:
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
@@ -30,30 +37,23 @@ additionalProperties:
labelEn: Login Password (Initialization)
required: true
random: true
type: text
type: password
- default: ""
edit: true
envKey: NEXTAUTH_SECRET
labelZh: NextAuth 加密密钥
labelEn: NextAuth Secret
envKey: AUTH_SECRET
labelZh: 加密密钥
labelEn: Encryption Key
required: true
random: true
type: text
- default: "http://localhost:15275/"
- default: "http://127.0.0.1:15275"
edit: true
envKey: NEXTAUTH_URL
labelZh: NextAuth 服务器地址
labelEn: NextAuth Server URL
envKey: NEXT_PUBLIC_BASE_URL
labelZh: 访问域名
labelEn: Access Domain
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"
- default: "ws://127.0.0.1:12555/live/update"
edit: true
envKey: WS_API_URL
labelZh: WebSocket API 地址
+7
View File
@@ -20,9 +20,13 @@ services:
- ${STREAM_REC_ROOT_PATH}/records:/opt/records
- ${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:
@@ -39,3 +43,6 @@ services:
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