feat:调整nezha
This commit is contained in:
3
apps/nezha-agent/0.20.1/.env.sample
Normal file
3
apps/nezha-agent/0.20.1/.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"
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
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"
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 2.4 KiB |
Reference in New Issue
Block a user