mirror of
https://github.com/samuelhbne/proxy-xray.git
synced 2025-12-17 12:44:38 +03:00
README.md
This commit is contained in:
22
README.md
22
README.md
@@ -21,17 +21,17 @@ $ docker build -t samuelhbne/proxy-xray:amd64 -f Dockerfile.amd64 .
|
||||
|
||||
```shell
|
||||
$ docker run --rm -it samuelhbne/proxy-xray:amd64
|
||||
proxy-xray --<ltx|ltt|lttw|mtt|mttw|ttt|tttw|ssa|sst|stdin> [options]
|
||||
--ltx <VLESS-TCP-XTLS option> id@host:port
|
||||
--ltt <VLESS-TCP-TLS option> id@host:port
|
||||
--lttw <VLESS-TCP-TLS-WS option> id@host:port:/webpath
|
||||
--lttg <VLESS-TCP-TLS-GRPC option> id@host:port:/svcpath
|
||||
--mtt <VMESS-TCP-TLS option> id@host:port
|
||||
--mttw <VMESS-TCP-TLS-WS option> id@host:port:/webpath
|
||||
--ttt <TROJAN-TCP-TLS option> password@host:port
|
||||
--tttw <TROJAN-TCP-TLS-WS option> password@host:port:/webpath
|
||||
-i|--stdin Read XRay config from stdin instead of auto generation
|
||||
-d|--debug Start Xray in debug mode with verbose output
|
||||
proxy-xray --<ltx|ltt|lttw|mtt|mttw|ttt|tttw|ssa|sst|stdin> [connect options] [-i|--stdin] [-d|--debug]
|
||||
-i|--stdin [Optional] Read config from stdin instead of auto generation
|
||||
-d|--debug [Optional] Start in debug mode with verbose output
|
||||
--ltx <VLESS-TCP-XTLS option> id@host:port
|
||||
--ltt <VLESS-TCP-TLS option> id@host:port
|
||||
--lttw <VLESS-TCP-TLS-WS option> id@host:port:/webpath
|
||||
--lttg <VLESS-TCP-TLS-GRPC option> id@host:port:/svcpath
|
||||
--mtt <VMESS-TCP-TLS option> id@host:port
|
||||
--mttw <VMESS-TCP-TLS-WS option> id@host:port:/webpath
|
||||
--ttt <TROJAN-TCP-TLS option> password@host:port
|
||||
--tttw <TROJAN-TCP-TLS-WS option> password@host:port:/webpath
|
||||
|
||||
$ docker run --name proxy-xray -p 1080:2080 -p 65353:53/udp -p 8123:8223 -d samuelhbne/proxy-xray \
|
||||
--ltx myid@mydomain.duckdns.org:443
|
||||
|
||||
26
run.sh
26
run.sh
@@ -5,19 +5,19 @@ DIR="$(cd $DIR; pwd)"
|
||||
XCONF=/tmp/proxy-xray.json
|
||||
|
||||
usage() {
|
||||
echo "proxy-xray --<ltx|ltt|lttw|mtt|mttw|ttt|tttw|ssa|sst|stdin> [options]"
|
||||
echo " --ltx <VLESS-TCP-XTLS option> id@host:port"
|
||||
echo " --ltt <VLESS-TCP-TLS option> id@host:port"
|
||||
echo " --lttw <VLESS-TCP-TLS-WS option> id@host:port:/webpath"
|
||||
echo " --lttg <VLESS-TCP-TLS-GRPC option> id@host:port:/svcpath"
|
||||
echo " --mtt <VMESS-TCP-TLS option> id@host:port"
|
||||
echo " --mttw <VMESS-TCP-TLS-WS option> id@host:port:/webpath"
|
||||
echo " --ttt <TROJAN-TCP-TLS option> password@host:port"
|
||||
echo " --tttw <TROJAN-TCP-TLS-WS option> password@host:port:/webpath"
|
||||
# echo " --ssa <Shadowsocks-AEAD option> password:method@host:port"
|
||||
# echo " --sst <Shadowsocks-TCP option> password:method@host:port"
|
||||
echo " -i|--stdin Read XRay config from stdin instead of auto generation"
|
||||
echo " -d|--debug Start Xray in debug mode with verbose output"
|
||||
echo "proxy-xray --<ltx|ltt|lttw|mtt|mttw|ttt|tttw|ssa|sst|stdin> [connect options] [-i|--stdin] [-d|--debug]"
|
||||
echo " -i|--stdin [Optional] Read config from stdin instead of auto generation"
|
||||
echo " -d|--debug [Optional] Start in debug mode with verbose output"
|
||||
echo " --ltx <VLESS-TCP-XTLS option> id@host:port"
|
||||
echo " --ltt <VLESS-TCP-TLS option> id@host:port"
|
||||
echo " --lttw <VLESS-TCP-TLS-WS option> id@host:port:/webpath"
|
||||
echo " --lttg <VLESS-TCP-TLS-GRPC option> id@host:port:/svcpath"
|
||||
echo " --mtt <VMESS-TCP-TLS option> id@host:port"
|
||||
echo " --mttw <VMESS-TCP-TLS-WS option> id@host:port:/webpath"
|
||||
echo " --ttt <TROJAN-TCP-TLS option> password@host:port"
|
||||
echo " --tttw <TROJAN-TCP-TLS-WS option> password@host:port:/webpath"
|
||||
# echo " --ssa <Shadowsocks-AEAD option> password:method@host:port"
|
||||
# echo " --sst <Shadowsocks-TCP option> password:method@host:port"
|
||||
}
|
||||
|
||||
TEMP=`getopt -o di --long ltx:,ltt:,lttw:,lttg:,mtt:,mttw:,ttt:,tttw:,ssa:,sst:stdin,debug -n "$0" -- $@`
|
||||
|
||||
Reference in New Issue
Block a user