mirror of
https://github.com/v2fly/v2ray-examples.git
synced 2025-11-26 22:55:38 +08:00
根据v5版本现有文档添加配置
This commit is contained in:
45
V5-Shadowsocks-TCP/client.json
Normal file
45
V5-Shadowsocks-TCP/client.json
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"access": {
|
||||
"type": "Console",
|
||||
"level": "Warning"
|
||||
},
|
||||
"error": {
|
||||
"type": "Console",
|
||||
"level": "Warning"
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"port": "10808",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
"udpEnabled": true,
|
||||
"address": "127.0.0.1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"listen": "127.0.0.1",
|
||||
"port": "10809",
|
||||
"protocol": "http"
|
||||
}
|
||||
],
|
||||
"outbounds": [
|
||||
{
|
||||
"protocol": "shadowsocks",
|
||||
"settings": {
|
||||
"address": "{{ host }}",
|
||||
"port": 1234,
|
||||
"method": "chacha20-ietf-poly1305",
|
||||
"password": "{{ password}}"
|
||||
},
|
||||
"streamSettings": {
|
||||
"transport": "tcp"
|
||||
},
|
||||
"tag": "proxy"
|
||||
},
|
||||
{
|
||||
"protocol": "freedom",
|
||||
"tag": "direct"
|
||||
}
|
||||
]
|
||||
}
|
||||
34
V5-Shadowsocks-TCP/server.json
Normal file
34
V5-Shadowsocks-TCP/server.json
Normal file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"access": {
|
||||
"type": "Console",
|
||||
"level": "Warning"
|
||||
},
|
||||
"error": {
|
||||
"type": "Console",
|
||||
"level": "Warning"
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"listen": "0.0.0.0",
|
||||
"port": 1234,
|
||||
"protocol": "shadowsocks",
|
||||
"settings": {
|
||||
"method": "chacha20-ietf-poly1305",
|
||||
"password": "{{ password }}"
|
||||
},
|
||||
"streamSettings": {
|
||||
"transport": "tcp"
|
||||
}
|
||||
}
|
||||
],
|
||||
"outbounds": [
|
||||
{
|
||||
"protocol": "freedom",
|
||||
"tag": "direct"
|
||||
},
|
||||
{
|
||||
"protocol": "blackhole",
|
||||
"tag": "block"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user