项目作者: Alienover

项目描述 :
Integration with Websocket + TLS in V2ray and Caddy as web server
高级语言: HTML
项目地址: git://github.com/Alienover/v2ray-caddy-docker.git
创建时间: 2020-03-22T11:45:14Z
项目社区:https://github.com/Alienover/v2ray-caddy-docker

开源协议:

下载


v2ray-caddy-docker

This setting is based on ws-tls-web which using the caddy as the web server and all the server are running in docker.

Leave a star if you like it or issue me if there’re questions.

Variables

Variable Type Description
DOMAIN String Website domain for TLS certificate authority
PROXY_PORT Number The exposed port to receive websocket request
UUID String The universally unique identifier for v2ray server. Get from https://www.uuidgenerator.net/ or use command uuidgen
WS_PATH String Path to connect websocket. Format like /:ws-path. ps. /:path isn’t equal to /:path/

All you need to do is to modify the variables above to your specified info in the following files

  • Caddyfile Replace DOMAIN, WS_PATH and PROXY_PORT
  • server_config.json Replace PROXY_PORT, UUID and WS_PATCH
  • client_config.json Replace DOMAIN, PROXY_PORT, UUID and WS_PATCH
  • docker-compose.yml Replace PROXY_PORT
  1. # Build (Will start at default after building)
  2. $ docker-compose up --build -d
  3. # Start
  4. $ docker-compose start
  5. # stop
  6. $ docker-compose stop
  7. # Show logs
  8. $ docker-compose logs -f

Referrences:

Caddy Server

Docker Compose

Websocket-TLS-Web

UUID Generator