Depoly

Nezha Server Monitoring 哪吒监控

开源、轻量、易用的服务器监控与运维工具

视频教程

请务必结合视频教程食用,因为细节内容都在视频中讲解,本文主要供小伙伴们拷贝代码用途。

查看视频:油管 B站

旧版视频:油管 B站

哪吒面板

docker-compose配置文件

yml
services:
  dashboard:
    image: ghcr.io/nezhahq/nezha
    container_name: nezha-dashboard
    restart: always
    volumes:
      - ./data:/dashboard/data
    ports:
      - 8008:8008

面板配置文件

yml
debug: false
realipheader: ""
language: zh_CN
sitename: DigVPS.COM
jwtsecretkey: 75VV5b9jtTGCktY8XuoK0BhCp2hMcMEVP9XXk3WVUf0PEpyYvFUWOxXGczyWVDCvwUVvzusZL54AvZfdkjmzU45f1lJ64zjr0uNasJ8KsCDlHkQN3ODRstVojGC1S4WRcQb2S3BZj5mZVVRjb0GZZdmFybpmx7DSZJUtGIftkRmGvEywDTepUXEpysMaAulVrdkI920Zt7YZhkAdsc3qMw1hpUD6r8q0ERWugdkf1BjTBHFtHTYPka7lri7HQcdRRIB11f5pmbejjBtVwfzV4lM8eTaz0j0SwKMC2le3SejoriHvcH3sbnhfuGJY9ZfmJKnhACBllxt9NuQjDFcstLztNi79aT5wDsrwHmFS8N7CriXwhyR0DdFRQiitX0tWp4X7SLhYyiLuqGgq4bmNlIkGIKdmcFupDT3YA8Pi0qgVnPTFA2nCRyYfCgCkzRb7M4Gym9EaaSrp5gHJGo5uyOh81iXNkJSlyXH1kwc7MAqrLD5gq3jpSF54jciNy0yGtQTNCh98Nz3qeWGw9bT0lOAcSEtnZlvKNc4fvaBFU3c9Js1V4B1pTGFjdZJvVRaEuD065kkORtxR6eaKmo5NBv5qNk32lsxcCaOiuYNMCHFtGbUWGmCKct3rtk6kzh0lGfImYlHzo2xu0IiytAs11FDzUE7fT1yugf3wcJ2GboDol8r12anMgleHZevFx8LI9O3Gf3UgkbIaqHVYc7njTl41r489wte7vuXur2A0dyv5MSR8PJ0TeLdWsSbLVHxfkZ0yYM5HAChnGInCkkgPE3DFfG6ukjQmpu3m3KGK0JMfHqbg1XjA7gVVCFcImZ1iJSbhK77N17fkN8HErNt5Dbqp4tJ74RWy3N1bcKDki3YODeU64fQudHqv4U7EDpy3IIEBChGLXcXEl7ZkJDE7CmY5cbfCCA7zALHdcGVcCU3sW0l1B4coYRqYJPPA1nnLzUdZUwsJoT3GpkfOMdx9tgQcMZVuVDdmqjtbBpkZ1GsqftKY6D3DqavEcj2vjEqN
agentsecretkey: WYGjFRqQPhcBCfmfPoXMjXUNIanxceKw
listenport: 8008
listenhost: ""
installhost: DigVPS.COM #客户端需要连接的服务器域名或者IP,请改为你自己的。
tls: true
location: Asia/Shanghai
enableplainipinnotification: false
enableipchangenotification: false
ipchangenotificationgroupid: 0
cover: 1
ignoredipnotification: ""
ignoredipnotificationserverids: {}
avgpingcount: 2
dnsservers: ""
customcode: ""
customcodedashboard: ""

反代配置

underscores_in_headers on;
ignore_invalid_headers off;

location /dashboard {
    proxy_pass http://$server:$port;
    proxy_set_header Host $http_host;
    proxy_set_header      Upgrade $http_upgrade;
}
# websocket 相关
location ~* ^/api/v1/ws/(server|terminal|file)(.*)$ {
    proxy_set_header Host $host;
    proxy_set_header nz-realip $remote_addr;
    proxy_set_header Origin https://$host;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_read_timeout 3600s;
    proxy_send_timeout 3600s;
    proxy_pass http://$server:$port;
}
# grpc 相关    
location ^~ /proto.NezhaService/ {
    grpc_set_header Host $host;
    grpc_set_header nz-realip $remote_addr;
    grpc_set_header client_secret $http_client_secret;
    grpc_set_header client_uuid $http_client_uuid;
    grpc_read_timeout 600s;
    grpc_send_timeout 600s;
    grpc_socket_keepalive on;
    client_max_body_size 10m;
    grpc_buffer_size 4m;
    grpc_pass grpc://$server:$port;
}

延迟监控IP

地区电信移动联通教育
上海202.96.209.133221.183.90.237210.22.97.1202.120.2.119
北京49.7.37.74112.34.111.194111.206.209.44101.6.15.66
广州183.47.126.35120.233.18.250157.148.58.29202.116.64.8
深圳218.17.11.168120.196.165.2458.250.90.114
河北27.185.242.215111.62.229.10061.182.138.156
山西1.71.157.41183.201.244.9160.221.18.41
辽宁123.184.58.4136.131.156.145218.61.211.132
吉林123.172.127.217111.27.127.176122.143.8.41
黑龙江42.101.84.132111.42.190.25113.7.211.140
江苏58.215.210.22036.156.92.132122.96.235.165
浙江115.220.14.91117.147.213.41101.69.194.224
安徽223.247.108.251112.29.198.100112.132.208.41
福建106.126.10.28112.50.96.8836.248.48.139
江西106.227.22.132117.168.150.249116.153.69.224
山东144.123.160.140120.220.145.91112.240.56.143
河南171.15.110.220111.7.99.220123.6.65.101
湖北111.170.8.60111.47.131.101122.189.226.138
湖南113.240.117.108120.226.192.91116.162.28.220
广东183.36.23.111183.240.65.191112.90.211.100
海南124.225.43.220111.29.29.219153.0.226.35
四川118.123.218.220183.220.151.41101.206.163.49
贵州58.42.61.13261.243.18.220117.187.254.132
云南222.221.102.22036.147.44.21914.204.150.41
陕西124.115.14.100111.19.148.100123.139.127.132
甘肃118.182.228.91117.157.16.4159.81.94.53
青海223.221.216.219111.12.152.170116.177.237.137
内蒙古110.76.186.70117.161.76.41116.114.98.41
广西222.217.93.5536.136.112.41171.39.5.51
西藏113.62.176.89117.180.234.4143.242.165.35
宁夏222.75.44.220111.51.155.214116.129.226.28
新疆110.157.243.4536.189.208.164116.178.77.40
天津42.81.98.35111.31.236.35116.78.119.56
重庆119.84.131.101221.178.81.101221.7.92.98

Copyright © 2024