快速优雅 部署v2ray WebSocket + TLS 自动续签
基于nginx-proxy修改
一行代码能做的事
- nginx-proxy管理证书
- 随机UUID
- 随机path(路径)
- 生成二维码
- 方便挂载其他网站、域名
#docker
curl -fsSL https://get.docker.com -o get-docker.sh
bash get-docker.sh 1>/dev/null
#docker-compose
sudo curl -fsSL \
"https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" \
-o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
#start docker
systemctl enable docker
systemctl start docker
Centos8 会安装失败,解决办法自行Google
Curl
mkdir docker-v2ray-tls && cd docker-v2ray-tls
curl -fsSL \
https://raw.githubusercontent.com/unclemikael/docker-v2ray-tls/master/install.sh \
-o install.sh
curl -fsSL \
https://raw.githubusercontent.com/unclemikael/docker-v2ray-tls/master/docker-compose.yml \
-o docker-compose.yml
curl -fsSL \
https://raw.githubusercontent.com/unclemikael/docker-v2ray-tls/master/config.json \
-o config.json
sudo chmod u+x install.sh
Git clone
git clone https://github.com/unclemikael/docker-v2ray-tls.git
cd docker-v2ray-tls
sudo chmod u+x install.sh
./install.sh example.orgTips:自定义路径、UUID
./install.sh example.org /v2ray 8b8b1829-17c7-4e80-ad78-84160f04f363- 需要占用80、443端口
- 关闭防火墙或开启80,443端口
- 确保dns已经正确解析
- 默认处于
LETSENCRYPT_TEST=true测试证书模式,会提示不安全,不影响使用 - 可到
docker-compose.yml修改成LETSENCRYPT_TEST=false正式证书
- Centos 7 (ipv6有问题)
- Debian 10 (√)
- Ubuntu 20.10 (√)