搭建Fastpanel
heading:: 2
- wget -O box.sh https://raw.githubusercontent.com/BlueSkyXN/SKY-BOX/main/box.sh && chmod +x box.sh && clear && ./box.sh
- 反向代理代码
- ↓
Chat: location / { proxy_pass http://172.17.0.2:3000/; # 改为你需要反代的地址 rewrite ^/(.*)$ /$1 break; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Upgrade-Insecure-Requests 1; proxy_set_header X-Forwarded-Proto https; }
- ↓
```
X-UI:
location ^~ /hahahahahahahaha { # panel改成自己的面板自定义路径
proxy_pass http://127.0.0.1:9999/hahahahahahahaha; 端口和panel记得修改
proxy_set_header Host remote_addr;
proxy_set_header X-Forwarded-For proxy_add_x_forwarded_for;
}
location /xdxdxdd { # magic改成自己的ws自定义路径
proxy_redirect off;
proxy_pass http://127.0.0.1:20082; # 端口改成自己的配置端口
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;
}
location /macmini { # magic改成自己的ws自定义路径
proxy_redirect off;
proxy_pass http://127.0.0.1:41731; # 端口改成自己的配置端口
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;
}
location /mineiPad { # magic改成自己的ws自定义路径
proxy_redirect off;
proxy_pass http://127.0.0.1:50259; # 端口改成自己的配置端口
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;
}
location /wodemac { # magic改成自己的ws自定义路径
proxy_redirect off;
proxy_pass http://127.0.0.1:50127; # 端口改成自己的配置端口
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;
}
```
- ↓
```
docker run -d --name subweb --restart always \
-p 18080:80 \
-v /PATH/subweb/conf:/usr/share/nginx/html/conf \
stilleshan/sub
docker run -d --name subweb --restart always \
-v /PATH/subweb/conf:/usr/share/nginx/html/conf \
stilleshan/sub
docker run -d --name subweb --restart always \
-v /PATH/subweb/conf:/root/githubdocker/dockerfiles/sub/conf \
stilleshan/sub
```
-
从零开始搭建好用的VPS
heading:: 2-
- 重新安装系统,我选择了 Ubuntu 20
-
Install new OS
heading:: 1
Operating system is currently being reinstalled, and it can take up to 15 minutes to complete.
Once finished, you will receive an e-mail notification at [email protected]
You will need a new temporary root password to access your VPS:
MriOkJXU1Op3New SSH Port:
29728 -
记得处理 hosts
dot ~/.ssh/known_hosts
-
- 安装docker 环境
https://docs.docker.com/engine/install/ubuntu/
wget -O box.sh https://raw.githubusercontent.com/BlueSkyXN/SKY-BOX/main/box.sh && chmod +x box.sh && clear && ./box.sh
- 安装docker 环境
- 3.安装NPM
- 4.安装XUI
bash \<(curl -Ls https://raw.githubusercontent.com/FranzKafkaYu/x-ui/master/install.sh)
-