Merge remote-tracking branch 'origin/custom' into custom
This commit is contained in:
42
appstore/nezha/1.13.0/.env
Normal file
42
appstore/nezha/1.13.0/.env
Normal file
@@ -0,0 +1,42 @@
|
||||
# 数据持久化路径 [必填]
|
||||
NEZHA_ROOT_PATH=/home/nezha
|
||||
|
||||
# WebUI 端口 [必填]
|
||||
PANEL_APP_PORT_HTTP=8008
|
||||
|
||||
# 系统语言 [必填]
|
||||
NZ_LANGUAGE=zh_CN
|
||||
|
||||
# 数据持久化路径 [必填]
|
||||
NZ_SITE_NAME=哪吒监控
|
||||
|
||||
# Agent是否启用TLS [必填]
|
||||
NZ_TLS=false
|
||||
|
||||
# OAuth 服务商 [必填]
|
||||
NZ_OAUTH2_TYPE=github
|
||||
|
||||
# 管理员账号ID [必填]
|
||||
NZ_OAUTH2_ADMIN=
|
||||
|
||||
# OAuth 客户端 ID [必填]
|
||||
NZ_OAUTH2_CLIENTID=
|
||||
|
||||
# OAuth 客户端 Secret [必填]
|
||||
NZ_OAUTH2_CLIENTSECRET=
|
||||
|
||||
# OAuth 端点 (可选)
|
||||
NZ_OAUTH2_ENDPOINT=
|
||||
|
||||
# 登录有效期 (小时) [必填]
|
||||
NZ_JWT_TIMEOUT=1
|
||||
|
||||
# 强制认证 [必填]
|
||||
NZ_FORCE_AUTH=false
|
||||
|
||||
# 是否脱敏通知IP [必填]
|
||||
NZ_ENABLE_PLAIN_IP_IN_NOTIFICATION=false
|
||||
|
||||
# IP 变更通知 [必填]
|
||||
NZ_ENABLE_IP_CHANGE_NOTIFICATION=false
|
||||
|
||||
141
appstore/nezha/1.13.0/data.yml
Normal file
141
appstore/nezha/1.13.0/data.yml
Normal file
@@ -0,0 +1,141 @@
|
||||
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"
|
||||
6
appstore/nezha/1.13.0/data/config-example.yaml
Normal file
6
appstore/nezha/1.13.0/data/config-example.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
debug: false
|
||||
listen_port: 8008
|
||||
language: zh_CN
|
||||
site_name: "nz_site_title"
|
||||
install_host: 127.0.0.1:8008
|
||||
tls: false
|
||||
19
appstore/nezha/1.13.0/docker-compose.yml
Normal file
19
appstore/nezha/1.13.0/docker-compose.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
services:
|
||||
nezha:
|
||||
container_name: nezha
|
||||
environment:
|
||||
- NZ_LISTEN_PORT=${PANEL_APP_PORT_HTTP}
|
||||
- NZ_LOCATION=Asia/Shanghai
|
||||
image: ghcr.io/nezhahq/nezha:v1.13.0
|
||||
labels:
|
||||
createdBy: Apps
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP}
|
||||
restart: always
|
||||
volumes:
|
||||
- ${NEZHA_ROOT_PATH}/data:/dashboard/data
|
||||
2
appstore/nezha/1.13.0/envs/default.env
Normal file
2
appstore/nezha/1.13.0/envs/default.env
Normal file
@@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
ENV_FILE=.env
|
||||
2
appstore/nezha/1.13.0/envs/global.env
Normal file
2
appstore/nezha/1.13.0/envs/global.env
Normal file
@@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
TZ=Asia/Shanghai
|
||||
26
appstore/nezha/1.13.0/scripts/init.sh
Normal file
26
appstore/nezha/1.13.0/scripts/init.sh
Normal file
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ -f .env ]]; then
|
||||
source .env
|
||||
|
||||
mkdir -p $NEZHA_ROOT_PATH
|
||||
mkdir -p $NEZHA_ROOT_PATH/data
|
||||
|
||||
cp -f ./data/config-example.yaml ./data/nezha-config.yaml
|
||||
sed -i "s/grpcport: nz_grpc_port/grpcport: $PANEL_APP_PORT_GRPC/g" ./data/nezha-config.yaml
|
||||
sed -i "s/type: \"nz_oauth2_type\"/type: \"$OAUTH2_TYPE\"/g" ./data/nezha-config.yaml
|
||||
sed -i "s/admin: \"nz_admin_logins\"/admin: \"$OAUTH2_ADMIN\"/g" ./data/nezha-config.yaml
|
||||
sed -i "s/clientid: \"nz_github_oauth_client_id\"/clientid: \"$OAUTH2_CLIENTID\"/g" ./data/nezha-config.yaml
|
||||
sed -i "s/clientsecret: \"nz_github_oauth_client_secret\"/clientsecret: \"$OAUTH2_CLIENTSECRET\"/g" ./data/nezha-config.yaml
|
||||
sed -i "s/endpoint: \"\"/endpoint: \"$OAUTH2_ENDPOINT\"/g" ./data/nezha-config.yaml
|
||||
sed -i "s/brand: \"nz_site_title\"/brand: \"$NZ_SITE_TITLE\"/g" ./data/nezha-config.yaml
|
||||
sed -i "s/cookiename: \"nezha-dashboard\"/cookiename: \"$NZ_COOKIE_NAME\"/g" ./data/nezha-config.yaml
|
||||
sed -i "s/theme: \"default\"/theme: \"$NZ_THEME\"/g" ./data/nezha-config.yaml
|
||||
cp -f ./data/nezha-config.yaml $NEZHA_ROOT_PATH/data/config.yaml
|
||||
chmod -R 777 $NEZHA_ROOT_PATH
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
10
appstore/nezha/1.13.0/scripts/uninstall.sh
Normal file
10
appstore/nezha/1.13.0/scripts/uninstall.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
10
appstore/nezha/1.13.0/scripts/upgrade.sh
Normal file
10
appstore/nezha/1.13.0/scripts/upgrade.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
@@ -3,12 +3,12 @@
|
||||
name: 哪吒监控
|
||||
tags:
|
||||
- WebSite
|
||||
- DevOps
|
||||
- Tool
|
||||
- Local
|
||||
shortDescZh: 开源、轻量、易用的服务器监控、运维工具
|
||||
shortDescEn: Open source, lightweight, easy-to-use server monitoring and operation and maintenance tools
|
||||
type: tool
|
||||
crossVersionUpdate: true
|
||||
type: website
|
||||
crossVersionUpdate: false
|
||||
limit: 0
|
||||
website: https://nezha.wiki/
|
||||
github: https://github.com/naiba/nezha/
|
||||
|
||||
42
dockge/nezha_1_13_0/.env
Normal file
42
dockge/nezha_1_13_0/.env
Normal file
@@ -0,0 +1,42 @@
|
||||
# 数据持久化路径 [必填]
|
||||
NEZHA_ROOT_PATH=/home/nezha
|
||||
|
||||
# WebUI 端口 [必填]
|
||||
PANEL_APP_PORT_HTTP=8008
|
||||
|
||||
# 系统语言 [必填]
|
||||
NZ_LANGUAGE=zh_CN
|
||||
|
||||
# 数据持久化路径 [必填]
|
||||
NZ_SITE_NAME=哪吒监控
|
||||
|
||||
# Agent是否启用TLS [必填]
|
||||
NZ_TLS=false
|
||||
|
||||
# OAuth 服务商 [必填]
|
||||
NZ_OAUTH2_TYPE=github
|
||||
|
||||
# 管理员账号ID [必填]
|
||||
NZ_OAUTH2_ADMIN=
|
||||
|
||||
# OAuth 客户端 ID [必填]
|
||||
NZ_OAUTH2_CLIENTID=
|
||||
|
||||
# OAuth 客户端 Secret [必填]
|
||||
NZ_OAUTH2_CLIENTSECRET=
|
||||
|
||||
# OAuth 端点 (可选)
|
||||
NZ_OAUTH2_ENDPOINT=
|
||||
|
||||
# 登录有效期 (小时) [必填]
|
||||
NZ_JWT_TIMEOUT=1
|
||||
|
||||
# 强制认证 [必填]
|
||||
NZ_FORCE_AUTH=false
|
||||
|
||||
# 是否脱敏通知IP [必填]
|
||||
NZ_ENABLE_PLAIN_IP_IN_NOTIFICATION=false
|
||||
|
||||
# IP 变更通知 [必填]
|
||||
NZ_ENABLE_IP_CHANGE_NOTIFICATION=false
|
||||
|
||||
6
dockge/nezha_1_13_0/data/config-example.yaml
Normal file
6
dockge/nezha_1_13_0/data/config-example.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
debug: false
|
||||
listen_port: 8008
|
||||
language: zh_CN
|
||||
site_name: "nz_site_title"
|
||||
install_host: 127.0.0.1:8008
|
||||
tls: false
|
||||
19
dockge/nezha_1_13_0/docker-compose.yml
Normal file
19
dockge/nezha_1_13_0/docker-compose.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
services:
|
||||
nezha:
|
||||
container_name: nezha
|
||||
environment:
|
||||
- NZ_LISTEN_PORT=${PANEL_APP_PORT_HTTP}
|
||||
- NZ_LOCATION=Asia/Shanghai
|
||||
image: ghcr.io/nezhahq/nezha:v1.13.0
|
||||
labels:
|
||||
createdBy: Apps
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP}
|
||||
restart: always
|
||||
volumes:
|
||||
- ${NEZHA_ROOT_PATH}/data:/dashboard/data
|
||||
2
dockge/nezha_1_13_0/envs/default.env
Normal file
2
dockge/nezha_1_13_0/envs/default.env
Normal file
@@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
ENV_FILE=.env
|
||||
2
dockge/nezha_1_13_0/envs/global.env
Normal file
2
dockge/nezha_1_13_0/envs/global.env
Normal file
@@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
TZ=Asia/Shanghai
|
||||
Reference in New Issue
Block a user