From 4f4d4be56b00a47af533062ed8d6ffc7896ae773 Mon Sep 17 00:00:00 2001 From: pooneyy <85266337+pooneyy@users.noreply.github.com> Date: Thu, 28 Aug 2025 20:43:49 +0800 Subject: [PATCH] Add advanced config options to MoonTV app --- apps/moontv/4.3.0/data.yml | 104 ++++++++++++++++++++++++-- apps/moontv/4.3.0/docker-compose.yml | 14 +++- apps/moontv/latest/data.yml | 104 ++++++++++++++++++++++++-- apps/moontv/latest/docker-compose.yml | 14 +++- 4 files changed, 222 insertions(+), 14 deletions(-) diff --git a/apps/moontv/4.3.0/data.yml b/apps/moontv/4.3.0/data.yml index 3c113dfe7..48be513f8 100644 --- a/apps/moontv/4.3.0/data.yml +++ b/apps/moontv/4.3.0/data.yml @@ -1,17 +1,111 @@ additionalProperties: formFields: - - default: 40249 + - default: 3000 edit: true envKey: PANEL_APP_PORT_HTTP - labelEn: Port - labelZh: 端口 + labelEn: WebUI port + labelZh: WebUI 端口 required: true rule: paramPort type: number + - default: "MoonTV" + edit: true + envKey: NEXT_PUBLIC_SITE_NAME + labelZh: 网站名称 + labelEn: Site Name + required: true + type: text + - default: "本网站仅提供影视信息搜索服务,所有内容均来自第三方网站。本站不存储任何视频资源,不对任何内容的准确性、合法性、完整性负责。" + edit: true + envKey: ANNOUNCEMENT + labelZh: 站点公告 + labelEn: Site Announcement + required: true + type: text + - default: 5 + edit: true + envKey: NEXT_PUBLIC_SEARCH_MAX_PAGE + labelZh: 搜索结果最大页数 + labelEn: Search result maximum number of pages + required: true + type: number + - default: "" + edit: true + envKey: USERNAME + labelZh: 管理员用户名 + labelEn: Admin Username + required: true + type: text - default: "" edit: true envKey: PASSWORD - labelEn: Password - labelZh: 密码 + labelZh: 管理员密码 + labelEn: Admin Password required: true + type: password + - default: "false" + edit: true + envKey: NEXT_PUBLIC_ENABLE_REGISTER + labelZh: 是否允许注册 + labelEn: Enable Register + required: true + type: select + values: + - label: 允许注册 + value: "true" + - label: 禁用注册 + value: "false" + - default: "false" + edit: true + envKey: NEXT_PUBLIC_DISABLE_YELLOW_FILTER + labelZh: 关闭色情内容过滤 + labelEn: Disable Yellow Filter + required: true + type: select + values: + - label: 开启过滤 + value: "true" + - label: 禁用过滤 + value: "false" + - default: "redis" + edit: true + envKey: NEXT_PUBLIC_STORAGE_TYPE + labelZh: 数据存储类型 + labelEn: Storage Type + required: true + type: select + values: + - label: Upstash + value: "upstash" + - label: Redis + value: "redis" + - label: Kvrocks + value: "kvrocks" + - default: "redis://127.0.0.1:6379" + edit: true + envKey: REDIS_URL + labelZh: Redis 地址 (Redis 存储) + labelEn: Redis Address (Redis Storage) + required: false type: text + - default: "redis://127.0.0.1:6666" + edit: true + envKey: KVROCKS_URL + labelZh: Kvrocks 地址 (Kvrocks 存储) + labelEn: Kvrocks Address (Kvrocks Storage) + required: false + type: text + - default: "" + edit: true + envKey: UPSTASH_URL + labelZh: Upstash 地址 (Upstash 存储) + labelEn: Upstash Address (Upstash Storage) + required: false + type: text + - default: "" + edit: true + envKey: UPSTASH_TOKEN + labelZh: Upstash 授权码 (Upstash 存储) + labelEn: Upstash Token (Upstash Storage) + required: false + type: password \ No newline at end of file diff --git a/apps/moontv/4.3.0/docker-compose.yml b/apps/moontv/4.3.0/docker-compose.yml index 615b58bc7..062fdfa17 100644 --- a/apps/moontv/4.3.0/docker-compose.yml +++ b/apps/moontv/4.3.0/docker-compose.yml @@ -8,8 +8,18 @@ services: ports: - "${PANEL_APP_PORT_HTTP}:3000" environment: - - PASSWORD=${PASSWORD} - - NEXT_PUBLIC_ENABLE_BLOCKAD=true + - USERNAME=${USERNAME} + - PASSWORD=${PASSWORD} + - NEXT_PUBLIC_ENABLE_BLOCKAD=true + - NEXT_PUBLIC_ENABLE_REGISTER=${NEXT_PUBLIC_ENABLE_REGISTER} + - NEXT_PUBLIC_DISABLE_YELLOW_FILTER=${NEXT_PUBLIC_DISABLE_YELLOW_FILTER} + - NEXT_PUBLIC_SEARCH_MAX_PAGE=${NEXT_PUBLIC_SEARCH_MAX_PAGE} + - NEXT_PUBLIC_SITE_NAME=${NEXT_PUBLIC_SITE_NAME} + - NEXT_PUBLIC_STORAGE_TYPE=${NEXT_PUBLIC_STORAGE_TYPE} + - KVROCKS_URL=${KVROCKS_URL} + - REDIS_URL=${REDIS_URL} + - UPSTASH_URL=${UPSTASH_URL} + - UPSTASH_TOKEN=${UPSTASH_TOKEN} labels: createdBy: "Apps" diff --git a/apps/moontv/latest/data.yml b/apps/moontv/latest/data.yml index 3c113dfe7..7d1092563 100644 --- a/apps/moontv/latest/data.yml +++ b/apps/moontv/latest/data.yml @@ -1,17 +1,111 @@ additionalProperties: formFields: - - default: 40249 + - default: 3000 edit: true envKey: PANEL_APP_PORT_HTTP - labelEn: Port - labelZh: 端口 + labelZh: WebUI 端口 + labelEn: WebUI port required: true rule: paramPort type: number + - default: "MoonTV" + edit: true + envKey: NEXT_PUBLIC_SITE_NAME + labelZh: 网站名称 + labelEn: Site Name + required: true + type: text + - default: "本网站仅提供影视信息搜索服务,所有内容均来自第三方网站。本站不存储任何视频资源,不对任何内容的准确性、合法性、完整性负责。" + edit: true + envKey: ANNOUNCEMENT + labelZh: 站点公告 + labelEn: Site Announcement + required: true + type: text + - default: 5 + edit: true + envKey: NEXT_PUBLIC_SEARCH_MAX_PAGE + labelZh: 搜索结果最大页数 + labelEn: Search result maximum number of pages + required: true + type: number + - default: "" + edit: true + envKey: USERNAME + labelZh: 管理员用户名 + labelEn: Admin Username + required: true + type: text - default: "" edit: true envKey: PASSWORD - labelEn: Password - labelZh: 密码 + labelZh: 管理员密码 + labelEn: Admin Password required: true + type: password + - default: "false" + edit: true + envKey: NEXT_PUBLIC_ENABLE_REGISTER + labelZh: 是否允许注册 + labelEn: Enable Register + required: true + type: select + values: + - label: 允许注册 + value: "true" + - label: 禁用注册 + value: "false" + - default: "false" + edit: true + envKey: NEXT_PUBLIC_DISABLE_YELLOW_FILTER + labelZh: 关闭色情内容过滤 + labelEn: Disable Yellow Filter + required: true + type: select + values: + - label: 开启过滤 + value: "true" + - label: 禁用过滤 + value: "false" + - default: "redis" + edit: true + envKey: NEXT_PUBLIC_STORAGE_TYPE + labelZh: 数据存储类型 + labelEn: Storage Type + required: true + type: select + values: + - label: Upstash + value: "upstash" + - label: Redis + value: "redis" + - label: Kvrocks + value: "kvrocks" + - default: "redis://127.0.0.1:6379" + edit: true + envKey: REDIS_URL + labelZh: Redis 地址 (Redis 存储) + labelEn: Redis Address (Redis Storage) + required: false type: text + - default: "redis://127.0.0.1:6666" + edit: true + envKey: KVROCKS_URL + labelZh: Kvrocks 地址 (Kvrocks 存储) + labelEn: Kvrocks Address (Kvrocks Storage) + required: false + type: text + - default: "" + edit: true + envKey: UPSTASH_URL + labelZh: Upstash 地址 (Upstash 存储) + labelEn: Upstash Address (Upstash Storage) + required: false + type: text + - default: "" + edit: true + envKey: UPSTASH_TOKEN + labelZh: Upstash 授权码 (Upstash 存储) + labelEn: Upstash Token (Upstash Storage) + required: false + type: password \ No newline at end of file diff --git a/apps/moontv/latest/docker-compose.yml b/apps/moontv/latest/docker-compose.yml index 086751555..542e5a916 100644 --- a/apps/moontv/latest/docker-compose.yml +++ b/apps/moontv/latest/docker-compose.yml @@ -8,8 +8,18 @@ services: ports: - "${PANEL_APP_PORT_HTTP}:3000" environment: - - PASSWORD=${PASSWORD} - - NEXT_PUBLIC_ENABLE_BLOCKAD=true + - USERNAME=${USERNAME} + - PASSWORD=${PASSWORD} + - NEXT_PUBLIC_ENABLE_BLOCKAD=true + - NEXT_PUBLIC_ENABLE_REGISTER=${NEXT_PUBLIC_ENABLE_REGISTER} + - NEXT_PUBLIC_DISABLE_YELLOW_FILTER=${NEXT_PUBLIC_DISABLE_YELLOW_FILTER} + - NEXT_PUBLIC_SEARCH_MAX_PAGE=${NEXT_PUBLIC_SEARCH_MAX_PAGE} + - NEXT_PUBLIC_SITE_NAME=${NEXT_PUBLIC_SITE_NAME} + - NEXT_PUBLIC_STORAGE_TYPE=${NEXT_PUBLIC_STORAGE_TYPE} + - KVROCKS_URL=${KVROCKS_URL} + - REDIS_URL=${REDIS_URL} + - UPSTASH_URL=${UPSTASH_URL} + - UPSTASH_TOKEN=${UPSTASH_TOKEN} labels: createdBy: "Apps"