apt update -y && apt install wget curl sudo git -y
curl -fsSL https://get.docker.com | bash -s docke
URL=https://www.aapanel.com/script/install_6.0_en.sh && if [ -f /usr/bin/curl ];then curl -ksSO "$URL" ;else wget --no-check-certificate -O install_6.0_en.sh "$URL";fi;bash install_6.0_en.sh aapanel
# 删除目录下文件chattr -i .user.inirm -rf .htaccess 404.html index.html .user.ini複製代碼
git clone https://github.com/cedar2025/Xboard.git .
cp docker-compose.sample.yaml docker-compose.yaml
docker compose run -it --rm xboard sh init.sh
docker compose up -d
location ^~ / { proxy_pass http://127.0.0.1:7001; proxy_http_version 1.1; proxy_set_header Connection ""; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-PORT $remote_port; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_set_header Scheme $scheme; proxy_set_header Server-Protocol $server_protocol; proxy_set_header Server-Name $server_name; proxy_set_header Server-Addr $server_addr; proxy_set_header Server-Port $server_port; proxy_cache off;}複製代碼
docker compose run -it --rm xboard sh update.sh
docker compose restart
wget -N https://raw.githubusercontent.com/wyx2685/V2bX-script/master/install.sh && bash install.sh