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-agent"
NZ_CLENT_SECRET="xxxxx"
NZ_GRPC_URL="http://1.2.3.4:5555"

View File

@@ -1,14 +1,16 @@
additionalProperties:
formFields:
- envKey: NZ_GRPC_URL
labelEn: "Nezha gRPC URL"
labelZh: 哪吒 gRPC 地址
required: true
type: text
edit: true
- envKey: NZ_CLENT_SECRET
labelEn: "Nezha client secret"
labelZh: 哪吒客户端密钥
required: true
type: password
edit: true
formFields:
- default: ""
edit: true
envKey: NZ_GRPC_URL
labelEn: "Nezha gRPC URL"
labelZh: 哪吒 gRPC 地址
required: true
type: text
- default: ""
edit: true
envKey: NZ_CLENT_SECRET
labelEn: "Nezha client secret"
labelZh: 哪吒客户端密钥
required: true
type: password

View File

@@ -1,8 +1,8 @@
services:
nezha-agent:
image: whoer/nezha-agent:0.20.1
image: "whoer/nezha-agent:0.20.1"
container_name: ${CONTAINER_NAME}
restart: unless-stopped
restart: always
command: --tls -s ${NZ_GRPC_URL} -p ${NZ_CLENT_SECRET} -d
volumes:
- /etc:/etc:ro

View File

@@ -1,12 +1,11 @@
name: nezha-agent
name: 哪吒监控 - Agent
tags:
- 工具
- 实用工具
title: 哪吒监控 - Agent
type: 工具
description: 哪吒监控 - Agent
additionalProperties:
key: nezha-agent
name: nezha-agent
name: 哪吒监控 - Agent
tags:
- Tool
shortDescZh: 哪吒监控 - Agent
@@ -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/agent.html

View File

@@ -0,0 +1,3 @@
CONTAINER_NAME="nezha-agent"
NZ_CLENT_SECRET="xxxxx"
NZ_GRPC_URL="http://1.2.3.4:5555"

View File

@@ -0,0 +1,16 @@
additionalProperties:
formFields:
- default: ""
edit: true
envKey: NZ_GRPC_URL
labelEn: "Nezha gRPC URL"
labelZh: 哪吒 gRPC 地址
required: true
type: text
- default: ""
edit: true
envKey: NZ_CLENT_SECRET
labelEn: "Nezha client secret"
labelZh: 哪吒客户端密钥
required: true
type: password

View File

@@ -0,0 +1,11 @@
services:
nezha-agent:
image: "whoer/nezha-agent:latest"
container_name: ${CONTAINER_NAME}
restart: always
command: --tls -s ${NZ_GRPC_URL} -p ${NZ_CLENT_SECRET} -d
volumes:
- /etc:/etc:ro
network_mode: host
labels:
createdBy: "Apps"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB