Easy Xray + xtls-vision + reality in Docker
Go to file
2021-01-16 18:51:55 -05:00
.gitignore Initial commit 2020-05-04 09:13:58 +00:00
client_conf.in new format 2021-01-16 17:53:44 -05:00
client_obj.in new format 2021-01-16 17:53:44 -05:00
config.yml new format 2021-01-16 18:13:11 -05:00
configure.py fix subdomain only 2021-01-16 18:51:55 -05:00
docker-compose.in new format 2021-01-16 17:55:14 -05:00
LICENSE new format 2021-01-16 17:53:44 -05:00
nginx.in new format 2021-01-16 17:53:44 -05:00
README.md update readme and linuxserver swag 2021-01-10 23:47:28 -05:00
server.in new format 2021-01-16 17:53:44 -05:00
watchtower.in new format 2021-01-16 17:53:44 -05:00

v2ray-letsencrypt-docker

Clean, dockerized v2ray(Websocket + TLS) + Nginx + Let's Encrypt with official and well-maintained docker containers. No BS private containers.

Supports:

  • v2ray with websocket + TLS protocol using the official v2ray docker image.
  • Nginx frontend and auto-renewing Let's Encrypt certificate using the popular linuxserver/swag.
  • This project basically generates UUID, random paths and uses python to process the templates.

Usage:

Required packages

  • docker-ce.
  • docker-compose.
  • python-jinja2. A popular python template processor. Just search for jinja2 with your distro's package manager.

Building

  • Clone this repo with your user instead of root.
  • Make sure you run setup.py with your user instead of root otherwise Nginx will not start.
  • Run python setup.py -h for directions.
  • For example, if your full domain name is aaa.bb.c and your email is d@e.f then run python setup.py -d bb.c -s aaa -e d@e.f
  • To start over, run git reset --hard. Don't run this with a running build or you will lose your existing config!

Connecting

After spinning up all the containers, you can use client.conf to connect. If you are setting it up on your phone, connect to subdomain.domain.tld:443 and use websocket obfuscation.

Troubleshooting

  • Make sure your subdomain.domain.tld points to the server.
  • Use docker logs nginx to check for nginx init errors. Detailed nginx logs and be found in nginx/logs/nginx
  • Use docker logs v2ray to check for v2ray init errors.