Skip to content

Commit

Permalink
Ver 4.32.0/VLESS
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaokaixuan committed Nov 5, 2020
1 parent 3605e0c commit 2825e2d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM alpine:3.6

ENV VER=4.23.4
ENV VER=4.32.0
ENV PORT=8080
ENV DOMAIN=
ENV UUID=91cb66ba-a373-43a0-8169-33d4eeaeb857
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## 一键部署 V2Ray 到 Heroku [![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy)

> 1. 部署时VMess协议的`UUID`默认`91cb66ba-a373-43a0-8169-33d4eeaeb857`,`alterId``64`
> 1. 部署时VMess/VLess协议的`UUID`默认`91cb66ba-a373-43a0-8169-33d4eeaeb857`,VMess时`alterId``64`
> 2. 服务端部署后,应`open app`,显示`Bad Request`,表示部署成功。
Expand Down
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
cd /v2ray

CONFIG_TLS=${DOMAIN:+,\"security\":\"tls\",\"tlsSettings\":{\"serverName\":\"${DOMAIN}\",\"certificates\":[{\"certificateFile\":\"cert.pem\",\"keyFile\":\"key.pem\"\}]\}}
CONFIG_JSON1={\"log\":{\"access\":\"\",\"error\":\"\",\"loglevel\":\"warning\"},\"inbounds\":[{\"protocol\":\"vmess\",\"port\":
CONFIG_JSON1={\"log\":{\"access\":\"\",\"error\":\"\",\"loglevel\":\"warning\"},\"inbounds\":[{\"protocol\":\"vless\",\"port\":
CONFIG_JSON2=,\"settings\":{\"clients\":[{\"id\":\"
[ ${CONFIG_TLS} ] && [ ! -e cert.pem -o ! -e key.pem ] && CONFIG_TLS=
CONFIG_JSON3=\",\"alterId\":64}]},\"streamSettings\":{\"network\":\"ws\"${CONFIG_TLS}}}],\"outbounds\":[{\"protocol\":\"freedom\",\"settings\":{}}]}
CONFIG_JSON3=\"}],\"decryption\":\"none\"},\"streamSettings\":{\"network\":\"ws\"${CONFIG_TLS}}}],\"outbounds\":[{\"protocol\":\"freedom\",\"settings\":{}}]}

echo -e -n "$CONFIG_JSON1" > config.json
echo -e -n "$PORT" >> config.json
Expand Down

0 comments on commit 2825e2d

Please sign in to comment.