X-UI监控面板安装
bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)
修改HestiaCP的Nginx配置
HestiaCP里面的网址路径地址
cd /home/用户名/conf/web/域名
修改文件
vim nginx.ssl.conf
加入的配置文件 404下方
location ^~ /panel { # panel改成自己的面板自定义路径
proxy_pass http://127.0.0.1:64321/panel; #端口和panel记得修改
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /magic { # magic改成自己的ws自定义路径
proxy_redirect off;
proxy_pass http://127.0.0.1:46830; # 端口改成自己的配置端口
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
proxy_read_timeout 300s;
# Show realip in access.log
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
重启服务
nginx -s reload
评论区