Skip to content

Kunkgg/v2ray-wstls

Repository files navigation

Introduce

Fork from v2fly/docker

  • Add alpine Chinese ustc repository

  • Add http proxy supporting while creating image

  • Add simple WebSockect + TLS v2ray server config template

  • Add V2RAY_UUID and V2RAY_VIRTUAL_PORT environment variables supporting while creating container

Create image

export TARGETPLATFORM="linux/amd64"
export HTTP_PROXY="http://192.168.0.7:1081"
export TAG_URL="https://github.com/v2fly/v2ray-core/tags"
export TAG=$(curl "${TAG_URL}" \
            | grep -E "/v2fly/v2ray-core/releases/tag/v" \
            | head -n1 \
            | grep -o -E "/v.*>$" \
            | tr -d '">' | cut -d'/' -f 6)


docker build \
--build-arg TARGETPLATFORM=${TARGETPLATFORM} \
--build-arg HTTP_PROXY=${HTTP_PROXY} \
-t v2ray-wstls:${TAG} .

Create container

export CONTAINER_NAME="v2ray-wstls"
export V2RAY_UUID="$(uuidgen)"
export V2RAY_VIRTUAL_PORT=10000

docker run -d --name ${CONTAINER_NAME} \
--env V2RAY_UUID=${V2RAY_UUID} \
--env V2RAY_VIRTUAL_PORT=${V2RAY_VIRTUAL_PORT} \
-p ${V2RAY_VIRTUAL_PORT}:${V2RAY_VIRTUAL_PORT} \
kunka/v2ray-wstls

About

Fork from v2fly/docker, add Websocket + TLS server config and tweaks for downloading

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors