想要一个将所有VPS集合在一块的监视面板,机缘巧合在B站某个测评UP主那看到了,叫哪吒。
安装过程
部署很简单,跟着教程走就好。就是有一些坑要注意。
-
其安装脚本里需要GitHub,国内访问有点艰难。虽然内置镜像站,但是我用的时候他指定的镜像似乎有问题,所有不得不找出里面所有跟GitHub相关的地址换成
https://mirror.ghproxy.com/https://github.com
。原来的替换规则如下:https://${GITHUB_RAW_URL}/
,所以自定义镜像时复制这个进去:mirror.ghproxy.com/https://github.com
,或者直接找出原来脚本的所有github地址改了( -
使用反代的话可以不暴露其他端口,注意将Agent的默认端口设置为443。这里提供一份Nginx参考配置:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39server {
#
server_name <Your Domain name>;
location / {
proxy_pass http://127.0.0.1:8008;
proxy_set_header Host $http_host;
proxy_set_header Upgrade $http_upgrade;
}
location ~ ^/(ws|terminal/.+)$ {
proxy_pass http://127.0.0.1:8008;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $http_host;
}
}
server {
server_name <Your Domain name>;
underscores_in_headers on;
keepalive_requests 100000;
keepalive_timeout 120s;
location / {
grpc_read_timeout 300s;
grpc_send_timeout 300s;
grpc_socket_keepalive on;
grpc_pass grpc://grpcservers;
}
}
upstream grpcservers {
server localhost:5555;
keepalive 512;
}写完后链接到
sites-enable
启用,cetbot
申请SSL证书就可以愉快使用了。