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
|
```shell
|
||||||
$ docker run --rm -it samuelhbne/proxy-xray:amd64
|
$ docker run --rm -it samuelhbne/proxy-xray:amd64
|
||||||
proxy-xray --<ltx|ltt|lttw|mtt|mttw|ttt|tttw|ssa|sst|stdin> [options]
|
proxy-xray --<ltx|ltt|lttw|mtt|mttw|ttt|tttw|ssa|sst|stdin> [connect options] [-i|--stdin] [-d|--debug]
|
||||||
--ltx <VLESS-TCP-XTLS option> id@host:port
|
-i|--stdin [Optional] Read config from stdin instead of auto generation
|
||||||
--ltt <VLESS-TCP-TLS option> id@host:port
|
-d|--debug [Optional] Start in debug mode with verbose output
|
||||||
--lttw <VLESS-TCP-TLS-WS option> id@host:port:/webpath
|
--ltx <VLESS-TCP-XTLS option> id@host:port
|
||||||
--lttg <VLESS-TCP-TLS-GRPC option> id@host:port:/svcpath
|
--ltt <VLESS-TCP-TLS option> id@host:port
|
||||||
--mtt <VMESS-TCP-TLS option> id@host:port
|
--lttw <VLESS-TCP-TLS-WS option> id@host:port:/webpath
|
||||||
--mttw <VMESS-TCP-TLS-WS option> id@host:port:/webpath
|
--lttg <VLESS-TCP-TLS-GRPC option> id@host:port:/svcpath
|
||||||
--ttt <TROJAN-TCP-TLS option> password@host:port
|
--mtt <VMESS-TCP-TLS option> id@host:port
|
||||||
--tttw <TROJAN-TCP-TLS-WS option> password@host:port:/webpath
|
--mttw <VMESS-TCP-TLS-WS option> id@host:port:/webpath
|
||||||
-i|--stdin Read XRay config from stdin instead of auto generation
|
--ttt <TROJAN-TCP-TLS option> password@host:port
|
||||||
-d|--debug Start Xray in debug mode with verbose output
|
--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 \
|
$ 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
|
--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
|
XCONF=/tmp/proxy-xray.json
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "proxy-xray --<ltx|ltt|lttw|mtt|mttw|ttt|tttw|ssa|sst|stdin> [options]"
|
echo "proxy-xray --<ltx|ltt|lttw|mtt|mttw|ttt|tttw|ssa|sst|stdin> [connect options] [-i|--stdin] [-d|--debug]"
|
||||||
echo " --ltx <VLESS-TCP-XTLS option> id@host:port"
|
echo " -i|--stdin [Optional] Read config from stdin instead of auto generation"
|
||||||
echo " --ltt <VLESS-TCP-TLS option> id@host:port"
|
echo " -d|--debug [Optional] Start in debug mode with verbose output"
|
||||||
echo " --lttw <VLESS-TCP-TLS-WS option> id@host:port:/webpath"
|
echo " --ltx <VLESS-TCP-XTLS option> id@host:port"
|
||||||
echo " --lttg <VLESS-TCP-TLS-GRPC option> id@host:port:/svcpath"
|
echo " --ltt <VLESS-TCP-TLS option> id@host:port"
|
||||||
echo " --mtt <VMESS-TCP-TLS option> id@host:port"
|
echo " --lttw <VLESS-TCP-TLS-WS option> id@host:port:/webpath"
|
||||||
echo " --mttw <VMESS-TCP-TLS-WS option> id@host:port:/webpath"
|
echo " --lttg <VLESS-TCP-TLS-GRPC option> id@host:port:/svcpath"
|
||||||
echo " --ttt <TROJAN-TCP-TLS option> password@host:port"
|
echo " --mtt <VMESS-TCP-TLS option> id@host:port"
|
||||||
echo " --tttw <TROJAN-TCP-TLS-WS option> password@host:port:/webpath"
|
echo " --mttw <VMESS-TCP-TLS-WS option> id@host:port:/webpath"
|
||||||
# echo " --ssa <Shadowsocks-AEAD option> password:method@host:port"
|
echo " --ttt <TROJAN-TCP-TLS option> password@host:port"
|
||||||
# echo " --sst <Shadowsocks-TCP option> password:method@host:port"
|
echo " --tttw <TROJAN-TCP-TLS-WS option> password@host:port:/webpath"
|
||||||
echo " -i|--stdin Read XRay config from stdin instead of auto generation"
|
# echo " --ssa <Shadowsocks-AEAD option> password:method@host:port"
|
||||||
echo " -d|--debug Start Xray in debug mode with verbose output"
|
# 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" -- $@`
|
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