1
0

feat:调整nezha

This commit is contained in:
okxlin
2024-10-21 01:47:25 +08:00
parent 91ddb9745e
commit 7a268018e3
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

@@ -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"