mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2026-06-16 01:02:14 +08:00
升级 哪吒面板
This commit is contained in:
@@ -1,141 +0,0 @@
|
|||||||
additionalProperties:
|
|
||||||
formFields:
|
|
||||||
- default: "/home/nezha"
|
|
||||||
edit: true
|
|
||||||
envKey: NEZHA_ROOT_PATH
|
|
||||||
labelZh: 数据持久化路径
|
|
||||||
labelEn: Data persistence path
|
|
||||||
required: true
|
|
||||||
type: text
|
|
||||||
- default: 8008
|
|
||||||
edit: true
|
|
||||||
envKey: PANEL_APP_PORT_HTTP
|
|
||||||
labelZh: WebUI 端口
|
|
||||||
labelEn: WebUI port
|
|
||||||
required: true
|
|
||||||
rule: paramPort
|
|
||||||
type: number
|
|
||||||
- default: "zh_CN"
|
|
||||||
edit: true
|
|
||||||
envKey: NZ_LANGUAGE
|
|
||||||
labelZh: 系统语言
|
|
||||||
labelEn: System language
|
|
||||||
required: true
|
|
||||||
type: select
|
|
||||||
values:
|
|
||||||
- label: 中文简体
|
|
||||||
value: "zh_CN"
|
|
||||||
- label: 中文繁体
|
|
||||||
value: "zh_TW"
|
|
||||||
- label: 英语
|
|
||||||
value: "en_US"
|
|
||||||
- default: "哪吒监控"
|
|
||||||
edit: true
|
|
||||||
envKey: NZ_SITE_NAME
|
|
||||||
labelZh: 数据持久化路径
|
|
||||||
labelEn: Data persistence path
|
|
||||||
required: true
|
|
||||||
type: text
|
|
||||||
- default: "false"
|
|
||||||
edit: true
|
|
||||||
envKey: NZ_TLS
|
|
||||||
labelZh: Agent是否启用TLS
|
|
||||||
labelEn: Agent whether to enable TLS
|
|
||||||
required: true
|
|
||||||
type: select
|
|
||||||
values:
|
|
||||||
- label: 启用
|
|
||||||
value: "true"
|
|
||||||
- label: 禁用
|
|
||||||
value: "false"
|
|
||||||
- default: "github"
|
|
||||||
edit: true
|
|
||||||
envKey: NZ_OAUTH2_TYPE
|
|
||||||
labelZh: OAuth 服务商
|
|
||||||
labelEn: OAuth Provider
|
|
||||||
required: true
|
|
||||||
type: select
|
|
||||||
values:
|
|
||||||
- label: GitHub
|
|
||||||
value: "github"
|
|
||||||
- label: Cloudflare
|
|
||||||
value: "cloudflare"
|
|
||||||
- label: GitLab
|
|
||||||
value: "gitlab"
|
|
||||||
- label: Gitee
|
|
||||||
value: "gitee"
|
|
||||||
- label: Gitea
|
|
||||||
value: "gitea"
|
|
||||||
- label: Jihulab
|
|
||||||
value: "jihulab"
|
|
||||||
- default: ""
|
|
||||||
edit: true
|
|
||||||
envKey: NZ_OAUTH2_ADMIN
|
|
||||||
labelZh: 管理员账号ID
|
|
||||||
labelEn: Admin Account ID
|
|
||||||
required: true
|
|
||||||
type: text
|
|
||||||
- default: ""
|
|
||||||
edit: true
|
|
||||||
envKey: NZ_OAUTH2_CLIENTID
|
|
||||||
labelEn: OAuth Client ID
|
|
||||||
labelZh: OAuth 客户端 ID
|
|
||||||
required: true
|
|
||||||
type: text
|
|
||||||
- default: ""
|
|
||||||
edit: true
|
|
||||||
envKey: NZ_OAUTH2_CLIENTSECRET
|
|
||||||
labelEn: OAuth Client Secret
|
|
||||||
labelZh: OAuth 客户端 Secret
|
|
||||||
required: true
|
|
||||||
type: text
|
|
||||||
- default: ""
|
|
||||||
edit: true
|
|
||||||
envKey: NZ_OAUTH2_ENDPOINT
|
|
||||||
labelEn: OAuth Callback
|
|
||||||
labelZh: OAuth 端点 (可选)
|
|
||||||
required: false
|
|
||||||
type: text
|
|
||||||
- default: 1
|
|
||||||
edit: true
|
|
||||||
envKey: NZ_JWT_TIMEOUT
|
|
||||||
labelZh: 登录有效期 (小时)
|
|
||||||
labelEn: Login validity period (hours)
|
|
||||||
required: true
|
|
||||||
type: number
|
|
||||||
- default: "false"
|
|
||||||
edit: true
|
|
||||||
envKey: NZ_FORCE_AUTH
|
|
||||||
labelZh: 强制认证
|
|
||||||
labelEn: Compulsory Certification
|
|
||||||
required: true
|
|
||||||
type: select
|
|
||||||
values:
|
|
||||||
- label: 启用
|
|
||||||
value: "true"
|
|
||||||
- label: 禁用
|
|
||||||
value: "false"
|
|
||||||
- default: "false"
|
|
||||||
edit: true
|
|
||||||
envKey: NZ_ENABLE_PLAIN_IP_IN_NOTIFICATION
|
|
||||||
labelZh: 是否脱敏通知IP
|
|
||||||
labelEn: Whether to desensitize notification IP
|
|
||||||
required: true
|
|
||||||
type: select
|
|
||||||
values:
|
|
||||||
- label: 明文IP
|
|
||||||
value: "true"
|
|
||||||
- label: 脱敏IP
|
|
||||||
value: "false"
|
|
||||||
- default: "false"
|
|
||||||
edit: true
|
|
||||||
envKey: NZ_ENABLE_IP_CHANGE_NOTIFICATION
|
|
||||||
labelZh: IP 变更通知
|
|
||||||
labelEn: IP Change Notification
|
|
||||||
required: true
|
|
||||||
type: select
|
|
||||||
values:
|
|
||||||
- label: 通知
|
|
||||||
value: "true"
|
|
||||||
- label: 禁用
|
|
||||||
value: "false"
|
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
additionalProperties:
|
||||||
|
formFields:
|
||||||
|
- default: "/home/nezha"
|
||||||
|
edit: true
|
||||||
|
envKey: NEZHA_ROOT_PATH
|
||||||
|
labelZh: 数据持久化路径
|
||||||
|
labelEn: Data persistence path
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: 8008
|
||||||
|
edit: true
|
||||||
|
envKey: PANEL_APP_PORT_HTTP
|
||||||
|
labelZh: WebUI 端口
|
||||||
|
labelEn: WebUI port
|
||||||
|
required: true
|
||||||
|
rule: paramPort
|
||||||
|
type: number
|
||||||
@@ -4,7 +4,7 @@ networks:
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
nezha:
|
nezha:
|
||||||
image: ghcr.io/nezhahq/nezha:v2.0.0
|
image: ghcr.io/nezhahq/nezha:v2.0.7
|
||||||
container_name: ${CONTAINER_NAME}
|
container_name: ${CONTAINER_NAME}
|
||||||
labels:
|
labels:
|
||||||
createdBy: "Apps"
|
createdBy: "Apps"
|
||||||
@@ -12,9 +12,8 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- 1panel-network
|
- 1panel-network
|
||||||
ports:
|
ports:
|
||||||
- ${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP}
|
- ${PANEL_APP_PORT_HTTP}:8008
|
||||||
volumes:
|
volumes:
|
||||||
- ${NEZHA_ROOT_PATH}/data:/dashboard/data
|
- ${NEZHA_ROOT_PATH}/data:/dashboard/data
|
||||||
environment:
|
environment:
|
||||||
- NZ_LISTEN_PORT=${PANEL_APP_PORT_HTTP}
|
- TZ=Asia/Shanghai
|
||||||
- NZ_LOCATION=Asia/Shanghai
|
|
||||||
Reference in New Issue
Block a user