🚸 improve
This commit is contained in:
		
							parent
							
								
									b82d26dcae
								
							
						
					
					
						commit
						cab07ce8ce
					
				
							
								
								
									
										21
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										21
									
								
								README.md
									
									
									
									
									
								
							@ -52,27 +52,6 @@ sudo ./nezha.sh
 | 
				
			|||||||
        websocket
 | 
					        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 上报监控信息。因为不会做成多用户的,上报信息会储存到内存中,暂不提供历史数据统计。
 | 
					C/S 采用 gRPC 通信,客户端通过添加主机生成的单独 Token 上报监控信息。因为不会做成多用户的,上报信息会储存到内存中,暂不提供历史数据统计。
 | 
				
			||||||
 | 
				
			|||||||
@ -131,7 +131,9 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    <button id="darkmodeButton"></button>
 | 
					    <button id="darkmodeButton"></button>
 | 
				
			||||||
    <footer>
 | 
					    <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>
 | 
					        </p>
 | 
				
			||||||
    </footer>
 | 
					    </footer>
 | 
				
			||||||
    <script src="https://cdn.jsdelivr.net/npm/jquery@3.4.1/dist/jquery.min.js"></script>
 | 
					    <script src="https://cdn.jsdelivr.net/npm/jquery@3.4.1/dist/jquery.min.js"></script>
 | 
				
			||||||
 | 
				
			|||||||
@ -82,7 +82,7 @@ pre_check() {
 | 
				
			|||||||
    fi
 | 
					    fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    ## server location
 | 
					    ## 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_RAW_URL="raw.staticdn.net"
 | 
				
			||||||
        GITHUB_URL="hub.fastgit.org"
 | 
					        GITHUB_URL="hub.fastgit.org"
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
@ -437,10 +437,10 @@ show_menu() {
 | 
				
			|||||||
        show_dashboard_log
 | 
					        show_dashboard_log
 | 
				
			||||||
        ;;
 | 
					        ;;
 | 
				
			||||||
    7)
 | 
					    7)
 | 
				
			||||||
        install_agent
 | 
					        uninstall_dashboard
 | 
				
			||||||
        ;;
 | 
					        ;;
 | 
				
			||||||
    8)
 | 
					    8)
 | 
				
			||||||
        uninstall_dashboard
 | 
					        install_agent
 | 
				
			||||||
        ;;
 | 
					        ;;
 | 
				
			||||||
    9)
 | 
					    9)
 | 
				
			||||||
        modify_agent_config
 | 
					        modify_agent_config
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user