feat:调整nezha
This commit is contained in:
3
apps/nezha-agent/latest/.env.sample
Normal file
3
apps/nezha-agent/latest/.env.sample
Normal file
@@ -0,0 +1,3 @@
|
||||
CONTAINER_NAME="nezha-agent"
|
||||
NZ_CLENT_SECRET="xxxxx"
|
||||
NZ_GRPC_URL="http://1.2.3.4:5555"
|
||||
16
apps/nezha-agent/latest/data.yml
Normal file
16
apps/nezha-agent/latest/data.yml
Normal 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
|
||||
11
apps/nezha-agent/latest/docker-compose.yml
Normal file
11
apps/nezha-agent/latest/docker-compose.yml
Normal 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"
|
||||
Reference in New Issue
Block a user