Sign inSign up

sikii/autov2ray

By sikii

•Updated over 6 years ago

Deploy v2ray ws + nginx + tls automatic

Image
0

1.0K

sikii/autov2ray repository overview

⁠AutoV2ray

let v2ray configure automatic ( TLS+NGINX+WEB )
Just put your site file on www dir if you want to use your own site as the web page

简体中文⁠

⁠Notice

  1. v2ray will use self-signed certificate if you don't give a dns.he.net⁠ ddns_key and sslPath either
  2. Honestly, I don't recommend the self-signed certificates
⁠Pre-check
  1. Have a domain
  2. A clean linux server
  3. Some basic knowledge of operating Linux
⁠Additional
  1. A domain on dns.he.net⁠ which had configured ddns
⁠Some presume
  1. Your server ip is: 1.1.1.1
  2. Your domain is: v2.google.com
  3. Your ddns key is: re35A5xFGdEzrRow
  4. Your ws path is: path
  5. Your uuid is: 85d0e39a-4571-44da-80bb-caf5f853c2ba
⁠Quick start
  1. Login to your server: ssh [email protected]
  2. Clone repo: git clone https://github.com/IITII/AutoV2ray.git
  3. Follow some example
  4. Enjoy yourself
⁠Example
git clone https://github.com/IITII/AutoV2ray.git && cd AutoV2ray

bash ./v2ray -w "v2.google.com"
bash ./v2ray -w "v2.google.com" 
bash ./v2ray -w "v2.google.com"  -p "path"
bash ./v2ray -w "v2.google.com"  -p "path" -u "85d0e39a-4571-44da-80bb-caf5f853c2ba" 
bash ./v2ray -w "v2.google.com"  -p "path" -u "85d0e39a-4571-44da-80bb-caf5f853c2ba" --ddns "re35A5xFGdEzrRow"
bash ./v2ray -w "v2.google.com"  -p "path" -u "85d0e39a-4571-44da-80bb-caf5f853c2ba" --sslPath "/etc/nginx/ssl"

systemctl status v2ray nginx

root@test-machine# bash v2ray.sh
Usage:
  draft/v2ray.sh -h, --help            Show this page
  draft/v2ray.sh -w                    siteName
  draft/v2ray.sh -p, --path            v2ray web socket path, default "/bin/date +"%S" | /usr/bin/base64"
  draft/v2ray.sh -u, --uuid            v2ray uuid
  draft/v2ray.sh --ddns                dns.he.net ddns's key
  draft/v2ray.sh --sslPath             ssl cert path
⁠Debug
  • systemctl status v2ray nginx & cat /var/v2ray/config.json & cat /etc/nginx/sites-enabled/default will help you a lot.
⁠Play with docker ( Maybe unstable )
  • docker run -d --name v2ray --restart always sikii/autov2ray
  • docker run -d --name v2ray -p 4433:443 -v /path/config.json:/etc/v2ray/config.json --restart always sikii/autov2ray

Tag summary

Content type

Image

Digest

Size

25.3 MB

Last updated

over 6 years ago

docker pull sikii/autov2ray