V2Ray 提供了一个在 Linux 中的自动化安装脚本。
一、执行
bash <(curl -s -L https://git.io/v2rayinstall.sh)
步骤,1安装,4选择,端口默认,解析域名,N,N,N,回车
修改配置
vi /etc/v2ray/config.json
“streamSettings”: {
“network”: “ws”,
“wsSettings”:{
“path”:”/demo”
}
二、
安装宝塔,安装nginx,添加网站,添加SSL,反向代理,修改配置文件
location /demo { proxy_pass http://127.0.0.1:62069; proxy_redirect off; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $http_host; }
注意观察上图 和配置一样
保存即可