安装x-ui面板并在宝塔反向代理

2022-12-25教程3195

视频教程:B站 or 飞书  or  Youtube


IP质量检测:

bash <(curl -Ls IP.Check.Place)


一键换源脚本:

bash <(curl -sSL https://linuxmirrors.cn/main.sh)

 

教育网

bash <(curl -sSL https://linuxmirrors.cn/main.sh) --edu

github地址

bash <(curl -sSL https://raw.githubusercontent.com/SuperManito/LinuxMirrors/main/ChangeMirrors.sh)

gitee地址

bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh)



宝塔安装:

Centos安装脚本:

yum install -y wget && wget -O install.sh https://download.bt.cn/install/install_6.0.sh && sh install.sh ed8484bec

Ubuntu/Deepin安装脚本:

wget -O install.sh https://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh ed8484bec

Debian安装脚本:

wget -O install.sh https://download.bt.cn/install/install-ubuntu_6.0.sh && bash install.sh ed8484bec


破解:

curl https://io.bt.sy/install/update_panel.sh|bash


X-ui面板安装:

bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)


反向代理:

#PROXY-START/mulu
location /mulu {
        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)



宝塔证书续签shell计划

/www/server/panel/pyenv/bin/python -u /www/server/panel/class/acme_v2.py --renew=1



下边这个用不到

bash <(curl -s -L https://git.io/v2ray.sh)#一键安装脚本


END.

打赏 支付宝打赏 微信打赏

评论列表

一捅处血
一捅处血
2025-06-01

配置文件应该修改成
# 反向代理后台管理面板
location / {
proxy_pass http://127.0.0.1:12345; # 将请求转发到后台面板的端口
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_read_timeout 300s;
}
# 反向代理 x-ui 代理服务
location /secrecy {
proxy_redirect off;
proxy_pass http://127.0.0.1:23456; # 将请求转发到 x-ui 代理服务的端口
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;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

wk 回复:
需要直接访问后台管理面板用这个合适
2025-06-01
一捅处血 回复:
忘记了,上面的一些参数需要自己进行修改.
location /secrecy
修改成博主的location /mulu
2025-06-02

发表评论

访客

看不清,换一张

◎欢迎参与讨论,请在这里发表您的看法和观点。