From 4092b45571976a0361966c63a3a25a89f9264f64 Mon Sep 17 00:00:00 2001 From: Meng Sen Date: Thu, 6 Feb 2025 11:36:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=20Stream-Rec=20=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Meng Sen --- apps/stream-rec/0.7.2/data.yml | 32 ++++++++++++------------ apps/stream-rec/0.7.2/docker-compose.yml | 7 ++++++ apps/stream-rec/README.md | 21 +++------------- 3 files changed, 26 insertions(+), 34 deletions(-) diff --git a/apps/stream-rec/0.7.2/data.yml b/apps/stream-rec/0.7.2/data.yml index 18ef3bb37..44a51650b 100644 --- a/apps/stream-rec/0.7.2/data.yml +++ b/apps/stream-rec/0.7.2/data.yml @@ -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 地址 diff --git a/apps/stream-rec/0.7.2/docker-compose.yml b/apps/stream-rec/0.7.2/docker-compose.yml index 8648c2a9b..6c4ee593f 100644 --- a/apps/stream-rec/0.7.2/docker-compose.yml +++ b/apps/stream-rec/0.7.2/docker-compose.yml @@ -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 diff --git a/apps/stream-rec/README.md b/apps/stream-rec/README.md index fdee4b89d..5f1c88ee0 100644 --- a/apps/stream-rec/README.md +++ b/apps/stream-rec/README.md @@ -39,7 +39,7 @@ Stream-rec 是一个自动录制各种直播平台的工具。 + `WebSocket API 地址` -默认值:`ws://stream-rec-backend:12555/live/update` +默认值:`ws://stream-rec-backend:12555/live/update` 或 `ws://127.0.0.1:12555/live/update` 需要获取: @@ -48,24 +48,9 @@ Stream-rec 是一个自动录制各种直播平台的工具。 填写格式:`ws://{宿主机 IP 地址}:{API 端口}/live/update` -### 可修改配置 ++ `访问域名` -+ `NextAuth 服务器地址` - -默认值:`http://localhost:15275/` - -需要获取: - -+ 宿主机 IP 地址 -+ 配置项 `WebUI 端口`, 默认值:`15275` - -填写格式:`http://{宿主机 IP 地址}:{WebUI 端口}/` - -### 无法修改项目 - -+ `API 地址` - -当前部署方式为 前后端合并部署,请勿强制修改参数值。 +服务跳转地址,用于跳转到 Web 界面 ---