🚸 improve

This commit is contained in:
naiba 2020-12-10 06:46:31 +08:00
parent b82d26dcae
commit cab07ce8ce
3 changed files with 6 additions and 25 deletions

View File

@ -52,27 +52,6 @@ sudo ./nezha.sh
websocket
}
```
### 服务器位于大陆常见问题
- Failed to connect to raw.githubusercontent.com
将以下内容写入hosts文件
```
199.232.68.133 raw.githubusercontent.com
```
- 监控端下载慢
监控端主要涉及github域名有github.com及raw.githubusercontent.com将这两个源替换为国内加速源即可
- github.com源替换方案
> sed -i 's/github.com/hub.fastgit.org/g' ./nezha.sh
- raw.githubusercontent.com源替换方案
> sed -i 's/raw.githubusercontent.com/raw.staticdn.net/g' ./nezha.sh
## 系统设计
C/S 采用 gRPC 通信,客户端通过添加主机生成的单独 Token 上报监控信息。因为不会做成多用户的,上报信息会储存到内存中,暂不提供历史数据统计。

View File

@ -131,7 +131,9 @@
<button id="darkmodeButton"></button>
<footer>
<p style="text-align:center;">Powered by <a href="https://github.com/naiba/nezha">哪吒面板</a> build · {{.Version}}
<p style="text-align:center;padding: 15px;">Powered by <a href="https://github.com/naiba/nezha">哪吒面板</a> build ·
{{.Version}}
<a href="/server">管理后台</a>
</p>
</footer>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.4.1/dist/jquery.min.js"></script>

View File

@ -82,7 +82,7 @@ pre_check() {
fi
## server location
if curl api.myip.la/json | grep -q 'China'; then
if curl -s api.myip.la/json | grep -q 'China'; then
GITHUB_RAW_URL="raw.staticdn.net"
GITHUB_URL="hub.fastgit.org"
fi
@ -437,10 +437,10 @@ show_menu() {
show_dashboard_log
;;
7)
install_agent
uninstall_dashboard
;;
8)
uninstall_dashboard
install_agent
;;
9)
modify_agent_config