iamtrazy / xray-docker-tls

Build and deploy this container to get a working xray websocket reverse proxied through caddy with automatic https (TLS)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Instructions

prerequisites - docker.io and docker-buildx

sudo apt-get update && sudo apt-get install -y docker.io docker-buildx
sudo usermod -aG docker $USER

point the domain to server ip before starting the container.

clone this repository to a vps

git clone https://github.com/iamtrazy/xray-docker-tls.git

edit and change the $DOMAIN and $UUID in the .env file

nano xray-docker-tls/.env

build the docker image using docker buildx

cd xray-docker-tls
docker buildx build -t caddy_xray .

run the docker image with host port 80 and 443

docker run --name caddy_xray -p 80:80 -p 443:443 --restart unless-stopped -d caddy_xray:latest

sample vless

vless://$UUID@$DOMAIN:443/?type=ws&encryption=none&host=$DOMAIN&path=%2Fiamtrazy&security=tls&sni=$DOMAIN&fp=chrome&packetEncoding=xudp#CDN  

replace $DOMAIN and $UUID with your Domain and UUID, set allowInsecure to true to add custom SNI (setting allowInsecure to true may make you vulnerable to MITM attacks).

About

Build and deploy this container to get a working xray websocket reverse proxied through caddy with automatic https (TLS)

License:GNU General Public License v3.0


Languages

Language:Shell 66.8%Language:Dockerfile 22.2%Language:HTML 11.0%