1
0

feat:调整nezha

This commit is contained in:
okxlin
2024-10-21 01:47:25 +08:00
parent 94d43d6bce
commit 4b87c3f543
27 changed files with 494 additions and 196 deletions

View File

@@ -0,0 +1,3 @@
CONTAINER_NAME="nezha-dashboard"
PANEL_APP_PORT_GRPC=5555
PANEL_APP_PORT_HTTP=40308

View File

@@ -1,18 +1,18 @@
additionalProperties:
formFields:
- default: 3000
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: HTTP Port
labelZh: HTTP 端口
required: true
rule: paramPort
type: number
- default: 5555
edit: true
envKey: PANEL_APP_PORT_GRPC
labelEn: GRPC Port
labelZh: GRPC 端口
required: true
rule: paramPort
type: number
formFields:
- default: "40308"
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: HTTP Port
labelZh: HTTP 端口
required: true
rule: paramPort
type: number
- default: "5555"
edit: true
envKey: PANEL_APP_PORT_GRPC
labelEn: GRPC Port
labelZh: GRPC 端口
required: true
rule: paramPort
type: number

View File

@@ -1,8 +1,8 @@
services:
nezha-dashboard:
image: ghcr.io/naiba/nezha-dashboard:v0.20.4
image: "ghcr.io/naiba/nezha-dashboard:v0.20.4"
container_name: ${CONTAINER_NAME}
restart: unless-stopped
restart: always
volumes:
- ./data:/dashboard/data
- ./config.yaml:/dashboard/data/config.yaml
@@ -11,9 +11,9 @@ services:
ports:
- ${PANEL_APP_PORT_HTTP}:80
- ${PANEL_APP_PORT_GRPC}:5555
labels:
labels:
createdBy: "Apps"
networks:
1panel-network:
networks:
1panel-network:
external: true

View File

@@ -15,4 +15,12 @@ Nezha Dashboard 是一款强大的开源监控和可视化工具,主要用于
- **用户权限管理**:提供细粒度的用户权限控制,确保监控数据的安全性。
- **开放API**:提供 RESTful API方便与其他系统集成。
Nezha Dashboard 是一个高度可定制、可扩展的监控平台,适合不同规模的用户,帮助运维人员和开发者及时掌握系统健康状态,进行系统调优与性能管理。
Nezha Dashboard 是一个高度可定制、可扩展的监控平台,适合不同规模的用户,帮助运维人员和开发者及时掌握系统健康状态,进行系统调优与性能管理。
## 使用说明
可以通过编辑目录下的配置文件来修改一些配置。
例如:
```
/opt/1panel/apps/local/nezha-dashboard/nezha-dashboard/config.yaml
```

View File

@@ -1,12 +1,11 @@
name: nezha-dashboard
name: 哪吒监控 - Dashboard
tags:
- 工具
- 实用工具
title: 哪吒监控 - Dashboard
type: 工具
description: 哪吒监控 - Dashboard
additionalProperties:
key: nezha-dashboard
name: nezha-dashboard
name: 哪吒监控 - Dashboard
tags:
- Tool
shortDescZh: 哪吒监控 - Dashboard
@@ -15,6 +14,6 @@ additionalProperties:
crossVersionUpdate: true
limit: 0
recommend: 0
website: https://nezha.wiki/
website: https://nezha.wiki
github: https://github.com/naiba/nezha
document: https://nezha.wiki/guide/dashboard.html

View File

@@ -0,0 +1,3 @@
CONTAINER_NAME="nezha-dashboard"
PANEL_APP_PORT_GRPC=5555
PANEL_APP_PORT_HTTP=40308

View File

@@ -0,0 +1,14 @@
debug: false
httpport: 80 # HTTP 端口,请勿修改
nz_language: zh-CN # 语言zh-CN/zh-TW/en-US/es-ES
grpcport: 5555 # gRPC 端口,请勿修改
oauth2: # Oauth2 登录接入,查看 https://nezha.wiki/guide/dashboard.html
type: "nz_oauth2_type" # Oauth2 登录接入类型github/gitlab/jihulab/gitee/gitea
admin: "nz_admin_logins" # 管理员列表,半角逗号隔开
clientid: "nz_github_oauth_client_id" # 在 https://github.com/settings/developers 创建,无需审核 Callback 填 http(s)://域名或IP/oauth2/callback
clientsecret: "nz_github_oauth_client_secret"
endpoint: "" # 如gitea自建需要设置
site:
brand: "nz_site_title" # 网站标题
cookiename: "nezha-dashboard" # 浏览器 Cookie 字段名,可不改
theme: "default" # 主题default/daynight/mdui/hotaru/angel-kanade/server-status

View File

@@ -0,0 +1,18 @@
additionalProperties:
formFields:
- default: "40308"
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: HTTP Port
labelZh: HTTP 端口
required: true
rule: paramPort
type: number
- default: "5555"
edit: true
envKey: PANEL_APP_PORT_GRPC
labelEn: GRPC Port
labelZh: GRPC 端口
required: true
rule: paramPort
type: number

View File

@@ -0,0 +1,19 @@
services:
nezha-dashboard:
image: "ghcr.io/naiba/nezha-dashboard:latest"
container_name: ${CONTAINER_NAME}
restart: always
volumes:
- ./data:/dashboard/data
- ./config.yaml:/dashboard/data/config.yaml
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:80
- ${PANEL_APP_PORT_GRPC}:5555
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB