feat:调整nezha
This commit is contained in:
@@ -1,138 +0,0 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: 3000
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: Port
|
||||
labelZh: 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- envKey: NEZHA_BASE_URL
|
||||
labelEn: NezhaBaseUrl
|
||||
labelZh: 哪吒面板地址
|
||||
required: true
|
||||
type: text
|
||||
edit: true
|
||||
- envKey: NEZHA_AUTH
|
||||
labelEn: NezhaAuth
|
||||
labelZh: 哪吒面板API Token
|
||||
required: true
|
||||
type: text
|
||||
edit: true
|
||||
- default: 2000
|
||||
edit: true
|
||||
envKey: NEXT_PUBLIC_NezhaFetchInterval
|
||||
labelEn: NezhaFetchInterval
|
||||
labelZh: 获取数据间隔(毫秒)
|
||||
required: true
|
||||
type: text
|
||||
- default: https://nezha-cf.buycoffee.top/apple-touch-icon.png
|
||||
edit: true
|
||||
envKey: NEXT_PUBLIC_CustomLogo
|
||||
labelEn: CustomLogo
|
||||
labelZh: 自定义Logo
|
||||
required: true
|
||||
type: text
|
||||
- default: Nezha-Dash
|
||||
edit: true
|
||||
envKey: NEXT_PUBLIC_CustomTitle
|
||||
labelEn: CustomTitle
|
||||
labelZh: 自定义标题
|
||||
required: true
|
||||
type: text
|
||||
- default: Nezha-Dash
|
||||
edit: true
|
||||
envKey: NEXT_PUBLIC_CustomDescription
|
||||
labelEn: CustomDescription
|
||||
labelZh: 自定义描述
|
||||
required: true
|
||||
type: text
|
||||
- default: "zh"
|
||||
edit: true
|
||||
envKey: DEFAULT_LOCALE
|
||||
labelEn: DefaultLocale
|
||||
labelZh: 默认语言
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: "简体中文"
|
||||
value: "zh"
|
||||
- label: "繁体中文"
|
||||
value: "zh-t"
|
||||
- label: "English"
|
||||
value: "en"
|
||||
- label: "日本語"
|
||||
value: "ja"
|
||||
- default: "否"
|
||||
edit: true
|
||||
envKey: ForceShowAllServers
|
||||
labelEn: ForceShowAllServers
|
||||
labelZh: 是否强制显示所有服务器
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: "是"
|
||||
value: "true"
|
||||
- label: "否"
|
||||
value: "false"
|
||||
- default: "否"
|
||||
edit: true
|
||||
envKey: NEXT_PUBLIC_ShowFlag
|
||||
labelEn: ShowFlag
|
||||
labelZh: 是否显示旗帜
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: "是"
|
||||
value: "true"
|
||||
- label: "否"
|
||||
value: "false"
|
||||
- default: "否"
|
||||
edit: true
|
||||
envKey: NEXT_PUBLIC_DisableCartoon
|
||||
labelEn: DisableCartoon
|
||||
labelZh: 是否禁用卡通人物
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: "是"
|
||||
value: "true"
|
||||
- label: "否"
|
||||
value: "false"
|
||||
- default: "否"
|
||||
edit: true
|
||||
envKey: NEXT_PUBLIC_ShowTag
|
||||
labelEn: ShowTag
|
||||
labelZh: 是否显示标签
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: "是"
|
||||
value: "true"
|
||||
- label: "否"
|
||||
value: "false"
|
||||
- default: "否"
|
||||
edit: true
|
||||
envKey: NEXT_PUBLIC_ShowNetTransfer
|
||||
labelEn: ShowNetTransfer
|
||||
labelZh: 是否显示流量信息
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: "是"
|
||||
value: "true"
|
||||
- label: "否"
|
||||
value: "false"
|
||||
- default: "否"
|
||||
edit: true
|
||||
envKey: NEXT_PUBLIC_ForceUseSvgFlag
|
||||
labelEn: ForceUseSvgFlag
|
||||
labelZh: 是否强制使用SVG旗帜
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: "是"
|
||||
value: "true"
|
||||
- label: "否"
|
||||
value: "false"
|
||||
15
apps/nezha-dash/0.6.2/.env.sample
Normal file
15
apps/nezha-dash/0.6.2/.env.sample
Normal file
@@ -0,0 +1,15 @@
|
||||
CONTAINER_NAME="nezha-dash"
|
||||
DEFAULT_LOCALE="zh"
|
||||
ForceShowAllServers="false"
|
||||
NEXT_PUBLIC_CustomDescription="Nezha-Dash"
|
||||
NEXT_PUBLIC_CustomLogo="https://nezha-cf.buycoffee.top/apple-touch-icon.png"
|
||||
NEXT_PUBLIC_CustomTitle="Nezha-Dash"
|
||||
NEXT_PUBLIC_DisableCartoon="false"
|
||||
NEXT_PUBLIC_ForceUseSvgFlag="false"
|
||||
NEXT_PUBLIC_NezhaFetchInterval=2000
|
||||
NEXT_PUBLIC_ShowFlag="false"
|
||||
NEXT_PUBLIC_ShowNetTransfer="false"
|
||||
NEXT_PUBLIC_ShowTag="false"
|
||||
NEZHA_AUTH="xxxx"
|
||||
NEZHA_BASE_URL="http://1.2.3.4"
|
||||
PANEL_APP_PORT_HTTP=40309
|
||||
140
apps/nezha-dash/0.6.2/data.yml
Normal file
140
apps/nezha-dash/0.6.2/data.yml
Normal file
@@ -0,0 +1,140 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: "40309"
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: Port
|
||||
labelZh: 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: ""
|
||||
envKey: NEZHA_BASE_URL
|
||||
labelEn: Nezha Base Url
|
||||
labelZh: 哪吒面板地址
|
||||
required: true
|
||||
type: text
|
||||
edit: true
|
||||
- default: ""
|
||||
envKey: NEZHA_AUTH
|
||||
labelEn: Nezha API Token
|
||||
labelZh: 哪吒面板 API Token
|
||||
required: true
|
||||
type: text
|
||||
edit: true
|
||||
- default: "2000"
|
||||
edit: true
|
||||
envKey: NEXT_PUBLIC_NezhaFetchInterval
|
||||
labelEn: Nezha Fetch Interval
|
||||
labelZh: 获取数据间隔(毫秒)
|
||||
required: true
|
||||
type: number
|
||||
- default: "https://nezha-cf.buycoffee.top/apple-touch-icon.png"
|
||||
edit: true
|
||||
envKey: NEXT_PUBLIC_CustomLogo
|
||||
labelEn: Custom Logo
|
||||
labelZh: 自定义 Logo
|
||||
required: true
|
||||
type: text
|
||||
- default: "Nezha-Dash"
|
||||
edit: true
|
||||
envKey: NEXT_PUBLIC_CustomTitle
|
||||
labelEn: Custom Title
|
||||
labelZh: 自定义标题
|
||||
required: true
|
||||
type: text
|
||||
- default: "Nezha-Dash"
|
||||
edit: true
|
||||
envKey: NEXT_PUBLIC_CustomDescription
|
||||
labelEn: Custom Description
|
||||
labelZh: 自定义描述
|
||||
required: true
|
||||
type: text
|
||||
- default: "zh"
|
||||
edit: true
|
||||
envKey: DEFAULT_LOCALE
|
||||
labelEn: DefaultLocale
|
||||
labelZh: 默认语言
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: "简体中文"
|
||||
value: "zh"
|
||||
- label: "繁体中文"
|
||||
value: "zh-t"
|
||||
- label: "English"
|
||||
value: "en"
|
||||
- label: "日本語"
|
||||
value: "ja"
|
||||
- default: "false"
|
||||
edit: true
|
||||
envKey: ForceShowAllServers
|
||||
labelEn: Force Show All Servers
|
||||
labelZh: 是否强制显示所有服务器
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: "True"
|
||||
value: "true"
|
||||
- label: "False"
|
||||
value: "false"
|
||||
- default: "false"
|
||||
edit: true
|
||||
envKey: NEXT_PUBLIC_ShowFlag
|
||||
labelEn: Show Flag
|
||||
labelZh: 是否显示旗帜
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: "True"
|
||||
value: "true"
|
||||
- label: "False"
|
||||
value: "false"
|
||||
- default: "false"
|
||||
edit: true
|
||||
envKey: NEXT_PUBLIC_DisableCartoon
|
||||
labelEn: Disable Cartoon
|
||||
labelZh: 是否禁用卡通人物
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: "True"
|
||||
value: "true"
|
||||
- label: "False"
|
||||
value: "false"
|
||||
- default: "false"
|
||||
edit: true
|
||||
envKey: NEXT_PUBLIC_ShowTag
|
||||
labelEn: Show Tag
|
||||
labelZh: 是否显示标签
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: "True"
|
||||
value: "true"
|
||||
- label: "False"
|
||||
value: "false"
|
||||
- default: "false"
|
||||
edit: true
|
||||
envKey: NEXT_PUBLIC_ShowNetTransfer
|
||||
labelEn: Show Net Transfer
|
||||
labelZh: 是否显示流量信息
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: "True"
|
||||
value: "true"
|
||||
- label: "False"
|
||||
value: "false"
|
||||
- default: "false"
|
||||
edit: true
|
||||
envKey: NEXT_PUBLIC_ForceUseSvgFlag
|
||||
labelEn: Force Use Svg Flag
|
||||
labelZh: 是否强制使用 SVG 旗帜
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: "True"
|
||||
value: "true"
|
||||
- label: "False"
|
||||
value: "false"
|
||||
@@ -20,10 +20,10 @@ services:
|
||||
- NEXT_PUBLIC_CustomLogo=${NEXT_PUBLIC_CustomLogo}
|
||||
- NEXT_PUBLIC_CustomTitle=${NEXT_PUBLIC_CustomTitle}
|
||||
- NEXT_PUBLIC_CustomDescription=${NEXT_PUBLIC_CustomDescription}
|
||||
image: hamster1963/nezha-dash:v0.6.0-fix
|
||||
labels:
|
||||
image: "hamster1963/nezha-dash:v0.6.2"
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
|
||||
networks:
|
||||
1panel-network:
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
@@ -1,12 +1,11 @@
|
||||
name: nezha-dash
|
||||
name: NezhaDash
|
||||
tags:
|
||||
- 工具
|
||||
- 实用工具
|
||||
title: 一个基于 Next.js 和 哪吒监控 的仪表盘
|
||||
type: 工具
|
||||
description: 一个基于 Next.js 和 哪吒监控 的仪表盘
|
||||
additionalProperties:
|
||||
key: nezha-dash
|
||||
name: nezha-dash
|
||||
name: NezhaDash
|
||||
tags:
|
||||
- Tool
|
||||
shortDescZh: 一个基于 Next.js 和 哪吒监控 的仪表盘
|
||||
@@ -15,6 +14,6 @@ additionalProperties:
|
||||
crossVersionUpdate: true
|
||||
limit: 0
|
||||
recommend: 0
|
||||
website: https://nezha-cf.buycoffee.top/zh
|
||||
website: https://nezha-cf.buycoffee.top
|
||||
github: https://github.com/hamster1963/nezha-dash
|
||||
document: https://github.com/hamster1963/nezha-dash?tab=readme-ov-file#nezhadash
|
||||
document: https://github.com/hamster1963/nezha-dash
|
||||
|
||||
15
apps/nezha-dash/latest/.env.sample
Normal file
15
apps/nezha-dash/latest/.env.sample
Normal file
@@ -0,0 +1,15 @@
|
||||
CONTAINER_NAME="nezha-dash"
|
||||
DEFAULT_LOCALE="zh"
|
||||
ForceShowAllServers="false"
|
||||
NEXT_PUBLIC_CustomDescription="Nezha-Dash"
|
||||
NEXT_PUBLIC_CustomLogo="https://nezha-cf.buycoffee.top/apple-touch-icon.png"
|
||||
NEXT_PUBLIC_CustomTitle="Nezha-Dash"
|
||||
NEXT_PUBLIC_DisableCartoon="false"
|
||||
NEXT_PUBLIC_ForceUseSvgFlag="false"
|
||||
NEXT_PUBLIC_NezhaFetchInterval=2000
|
||||
NEXT_PUBLIC_ShowFlag="false"
|
||||
NEXT_PUBLIC_ShowNetTransfer="false"
|
||||
NEXT_PUBLIC_ShowTag="false"
|
||||
NEZHA_AUTH="xxxx"
|
||||
NEZHA_BASE_URL="http://1.2.3.4"
|
||||
PANEL_APP_PORT_HTTP=40309
|
||||
140
apps/nezha-dash/latest/data.yml
Normal file
140
apps/nezha-dash/latest/data.yml
Normal file
@@ -0,0 +1,140 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: "40309"
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: Port
|
||||
labelZh: 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: ""
|
||||
envKey: NEZHA_BASE_URL
|
||||
labelEn: Nezha Base Url
|
||||
labelZh: 哪吒面板地址
|
||||
required: true
|
||||
type: text
|
||||
edit: true
|
||||
- default: ""
|
||||
envKey: NEZHA_AUTH
|
||||
labelEn: Nezha API Token
|
||||
labelZh: 哪吒面板 API Token
|
||||
required: true
|
||||
type: text
|
||||
edit: true
|
||||
- default: "2000"
|
||||
edit: true
|
||||
envKey: NEXT_PUBLIC_NezhaFetchInterval
|
||||
labelEn: Nezha Fetch Interval
|
||||
labelZh: 获取数据间隔(毫秒)
|
||||
required: true
|
||||
type: number
|
||||
- default: "https://nezha-cf.buycoffee.top/apple-touch-icon.png"
|
||||
edit: true
|
||||
envKey: NEXT_PUBLIC_CustomLogo
|
||||
labelEn: Custom Logo
|
||||
labelZh: 自定义 Logo
|
||||
required: true
|
||||
type: text
|
||||
- default: "Nezha-Dash"
|
||||
edit: true
|
||||
envKey: NEXT_PUBLIC_CustomTitle
|
||||
labelEn: Custom Title
|
||||
labelZh: 自定义标题
|
||||
required: true
|
||||
type: text
|
||||
- default: "Nezha-Dash"
|
||||
edit: true
|
||||
envKey: NEXT_PUBLIC_CustomDescription
|
||||
labelEn: Custom Description
|
||||
labelZh: 自定义描述
|
||||
required: true
|
||||
type: text
|
||||
- default: "zh"
|
||||
edit: true
|
||||
envKey: DEFAULT_LOCALE
|
||||
labelEn: DefaultLocale
|
||||
labelZh: 默认语言
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: "简体中文"
|
||||
value: "zh"
|
||||
- label: "繁体中文"
|
||||
value: "zh-t"
|
||||
- label: "English"
|
||||
value: "en"
|
||||
- label: "日本語"
|
||||
value: "ja"
|
||||
- default: "false"
|
||||
edit: true
|
||||
envKey: ForceShowAllServers
|
||||
labelEn: Force Show All Servers
|
||||
labelZh: 是否强制显示所有服务器
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: "True"
|
||||
value: "true"
|
||||
- label: "False"
|
||||
value: "false"
|
||||
- default: "false"
|
||||
edit: true
|
||||
envKey: NEXT_PUBLIC_ShowFlag
|
||||
labelEn: Show Flag
|
||||
labelZh: 是否显示旗帜
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: "True"
|
||||
value: "true"
|
||||
- label: "False"
|
||||
value: "false"
|
||||
- default: "false"
|
||||
edit: true
|
||||
envKey: NEXT_PUBLIC_DisableCartoon
|
||||
labelEn: Disable Cartoon
|
||||
labelZh: 是否禁用卡通人物
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: "True"
|
||||
value: "true"
|
||||
- label: "False"
|
||||
value: "false"
|
||||
- default: "false"
|
||||
edit: true
|
||||
envKey: NEXT_PUBLIC_ShowTag
|
||||
labelEn: Show Tag
|
||||
labelZh: 是否显示标签
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: "True"
|
||||
value: "true"
|
||||
- label: "False"
|
||||
value: "false"
|
||||
- default: "false"
|
||||
edit: true
|
||||
envKey: NEXT_PUBLIC_ShowNetTransfer
|
||||
labelEn: Show Net Transfer
|
||||
labelZh: 是否显示流量信息
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: "True"
|
||||
value: "true"
|
||||
- label: "False"
|
||||
value: "false"
|
||||
- default: "false"
|
||||
edit: true
|
||||
envKey: NEXT_PUBLIC_ForceUseSvgFlag
|
||||
labelEn: Force Use Svg Flag
|
||||
labelZh: 是否强制使用 SVG 旗帜
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: "True"
|
||||
value: "true"
|
||||
- label: "False"
|
||||
value: "false"
|
||||
29
apps/nezha-dash/latest/docker-compose.yml
Normal file
29
apps/nezha-dash/latest/docker-compose.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
services:
|
||||
nezha-dash:
|
||||
container_name: ${CONTAINER_NAME}
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- "${PANEL_APP_PORT_HTTP}:3000"
|
||||
environment:
|
||||
- NezhaBaseUrl=${NEZHA_BASE_URL}
|
||||
- NezhaAuth=${NEZHA_AUTH}
|
||||
- DefaultLocale=${DEFAULT_LOCALE}
|
||||
- ForceShowAllServers=${ForceShowAllServers}
|
||||
- NEXT_PUBLIC_NezhaFetchInterval=${NEXT_PUBLIC_NezhaFetchInterval}
|
||||
- NEXT_PUBLIC_ShowFlag=${NEXT_PUBLIC_ShowFlag}
|
||||
- NEXT_PUBLIC_DisableCartoon=${NEXT_PUBLIC_DisableCartoon}
|
||||
- NEXT_PUBLIC_ShowTag=${NEXT_PUBLIC_ShowTag}
|
||||
- NEXT_PUBLIC_ShowNetTransfer=${NEXT_PUBLIC_ShowNetTransfer}
|
||||
- NEXT_PUBLIC_ForceUseSvgFlag=${NEXT_PUBLIC_ForceUseSvgFlag}
|
||||
- NEXT_PUBLIC_CustomLogo=${NEXT_PUBLIC_CustomLogo}
|
||||
- NEXT_PUBLIC_CustomTitle=${NEXT_PUBLIC_CustomTitle}
|
||||
- NEXT_PUBLIC_CustomDescription=${NEXT_PUBLIC_CustomDescription}
|
||||
image: "hamster1963/nezha-dash:latest"
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 708 B |
Reference in New Issue
Block a user