Skip to content

Commit

Permalink
token定义变量
Browse files Browse the repository at this point in the history
  • Loading branch information
KtKID committed Aug 16, 2023
1 parent 972091a commit 8e23850
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ else
SSL_PORT_START=10000 #start-end受限于nginx最大连接数量
SSL_PORT_END=10010
V2RAY_PORT=54321
TOKEN="0000000-0000-0000-000-000000"
WS_PATH="/xxx"

port_flags=""
for((i=$SSL_PORT_START; i<$SSL_PORT_END; i++))
Expand All @@ -29,10 +31,10 @@ else
-p ${V2RAY_PORT}:${V2RAY_PORT} \
-v "/etc/letsencrypt/archive/${SITE_DOMAIN}":/data/cert/${SITE_DOMAIN} \
-e SITE_DOMAIN="${SITE_DOMAIN}" \
-e V2RAY_TOKEN="0000000-0000-0000-000-000000" \
-e V2RAY_TOKEN=${TOKEN} \
-e V2RAY_PORT=${V2RAY_PORT} \
-e SSL_PORT_START=${SSL_PORT_START} \
-e SSL_PORT_END=${SSL_PORT_END} \
-e V2RAY_WS_PATH=/xxx \
-e V2RAY_WS_PATH=${WS_PATH} \
docker-nginx-v2ray
fi

0 comments on commit 8e23850

Please sign in to comment.