一、在cloudflare配置域名DNS,同时自定义一个域名并将服务器IP解析,自行安装宝塔面板
二、X-ui面板安装
bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)
Github地址:https://github.com/vaxilu/x-ui
三、宝塔面板添加网站,PHP设置为静态,申请SSL证书
四、反向代理配置
添加反向代理,注意代理目录,端口

反代配置文件修改为以下内容,具体自行修改
#PROXY-START/mulu
location /自行修改 {
proxy_redirect off;
proxy_pass http://127.0.0.1:12345(端口自行修改);
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 v2ray access.log
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
#PROXY-END/
五、bbrplus 加速安装
bash <(curl -Lso- https://git.io/kernel.sh)
注意事项:
1.记得宝塔面板放开x-ui脚本安装时填写的端口