1Panel 面板安装:

项目地址
https://1panel.cn

安装命令:

curl -sSL https://resource.fit2cloud.com/1panel/package/quick_start.sh -o quick_start.sh && bash quick_start.sh

管理命令:

1pctl

类 BT 面板 mdserver-web 安装:

项目地址:
https://github.com/midoks/mdserver-web

安装命令行:

curl --insecure -fsSL https://cdn.jsdelivr.net/gh/midoks/mdserver-web@latest/scripts/install.sh | bash

卸载:

wget --no-check-certificate -O uninstall.sh https://cdn.jsdelivr.net/gh/midoks/mdserver-web@latest/scripts/uninstall.sh && bash uninstall.sh

sing-web X-ui 是在原版 X-ui 的基础上继续开发维护的非常好用的 X-ui 面板,支持最新的 Reality 协议等等。

项目地址:
https://github.com/sing-web/x-ui

安装命令行:

bash <(wget -qO- https://raw.githubusercontent.com/sing-web/x-ui/main/install_CN.sh)

管理命令:

x-ui

安装很快,大概 1-2 分钟就可以安装完成。

在面板里配置好网站和证书后,即可修改站点配置文件,利用 X-ui 搭建 ws+lts+Nginx+Web 的伪装代理。

站点配置文件实例:

#Xray
        location ^~ /test/ {
        proxy_pass http://127.0.0.1:【X-ui 面板端口】/test/;
        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 /xray/ {
        proxy_redirect off;
        proxy_pass http://127.0.0.1:【Xray 端口】;
        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;
        }