nezha/README.md

95 lines
2.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 哪吒面板
服务期状态监控,被动接收,极省资源 128M 小鸡也能装 Agent非 node-exporter 那种主动拉取的方式。)
| 哪吒面板 | 首页截图1 | 首页截图2 |
| ---- | ---- | ---- |
| <img src="https://s3.ax1x.com/2020/12/08/DzHv6A.jpg" width="2333px" /> | ![首页截图1](https://s3.ax1x.com/2020/12/07/DvTCwD.jpg) | <img src="https://s3.ax1x.com/2020/12/09/rPF4xJ.png" width="1600px" /> |
\>> [查看针友列表](https://www.google.com/search?q=%22powered+by+%E5%93%AA%E5%90%92%E9%9D%A2%E6%9D%BF%22) (Google)
## 一键脚本
- 海外:
```shell
curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install.sh -o nezha.sh && chmod +x nezha.sh
sudo ./nezha.sh
```
- 国内加速:
```shell
curl -L https://raw.sevencdn.com/naiba/nezha/master/script/install.sh -o nezha.sh && chmod +x nezha.sh
sudo ./nezha.sh
```
## 使用说明
### 自定义 CSS
- 默认主题更改进度条颜色示例
```
.ui.fine.progress> .bar {
background-color: pink !important;
}
```
- hotaru 主题更改背景图片示例
```
.hotaru-cover {
background: url(https://s3.ax1x.com/2020/12/08/DzHv6A.jpg) center;
}
```
### 通知
正在开发,进度 0%
## 常见问题
### 数据备份恢复
数据储存在 `/opt/nezha` 文件夹中,迁移数据时打包这个文件夹,到新环境解压。然后执行一键脚本安装即可
### 启用 HTTPS
使用宝塔反代或者上CDN建议 Agent配置 跟 访问管理面板 使用不同的域名这样管理面板使用的域名可以直接套CDNAgent配置的域名是解析管理面板IP使用的也方便后面管理面板迁移如果你使用IP后面IP更换了需要修改每个agent就麻烦了
### 反代配置
使用反向代理时需要针对 `/ws` 路径的 WebSocket 进行特别配置以支持实时更新服务器状态。
- Nginx(宝塔):在你的 nginx 配置文件中加入以下代码
```nginx
server{
#server_name blablabla...
location /ws {
proxy_pass http://ip:站点访问端口;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
}
#其他的 location blablabla...
}
```
- CaddyServer v1v2无需特别配置
```Caddyfile
proxy /ws http://ip:8008 {
websocket
}
```
## 社区文章
- [哪吒探针 - Windows 客户端安装](https://nyko.me/2020/12/13/nezha-windows-client.html)
- [哪吒面板:小鸡们的最佳探针](https://www.zhujizixun.com/2843.html) *(已过时)*