From 764a0d039adb729058384c9d90002bc0c95d91ea Mon Sep 17 00:00:00 2001 From: Misaka-blog Date: Sun, 9 Apr 2023 15:14:59 +0800 Subject: [PATCH] Add vmess+ws example --- docs/examples/index.md | 3 ++- docs/examples/vmess.md | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 docs/examples/vmess.md diff --git a/docs/examples/index.md b/docs/examples/index.md index dbc6c42b..11d8f92b 100644 --- a/docs/examples/index.md +++ b/docs/examples/index.md @@ -4,8 +4,9 @@ Configuration examples for sing-box. * [Linux Server Installation](./linux-server-installation) * [Tun](./tun) -* [DNS Hijack](./dns-hijack.md) +* [DNS Hijack](./dns-hijack) * [Shadowsocks](./shadowsocks) * [ShadowTLS](./shadowtls) +* [VMess](./vmess) * [Clash API](./clash-api) * [WireGuard Direct](./wireguard-direct) diff --git a/docs/examples/vmess.md b/docs/examples/vmess.md new file mode 100644 index 00000000..8e9ed22b --- /dev/null +++ b/docs/examples/vmess.md @@ -0,0 +1,32 @@ +# VMess + +## Websocket + +```json +{ + "inbounds": [ + { + "type": "vmess", + "tag": "vmess-in", + "listen": "::", + "listen_port": 8080, + "tcp_fast_open": false, + "sniff": false, + "sniff_override_destination": false, + "domain_strategy": "prefer_ipv4", + "proxy_protocol": false, + "users": [ + { + "name": "sekai", + "uuid": "e70945d9-47f5-4ebf-9c48-d96ca91cfe3e", + "alterId": 0 + } + ], + "transport": { + "type": "ws", + "path": "/" + } + } + ] +} +``` \ No newline at end of file