format example json

This commit is contained in:
kslr 2020-07-31 19:23:33 +08:00
parent 7ad88b8f38
commit 08d3f2b4b2

192
README.md
View File

@ -21,12 +21,12 @@
```yaml ```yaml
{ {
"log": { "log": {
"loglevel": "warning" "loglevel": "warning"
}, },
"routing": {}, "routing": {},
"inbounds": [], "inbounds": [],
"outbounds": [] "outbounds": []
} }
``` ```
@ -34,49 +34,49 @@
```yaml ```yaml
{ {
"log": { "log": {
"loglevel": "warning" "loglevel": "warning"
}, },
"routing": { "routing": {
"domainStrategy": "AsIs", "domainStrategy": "AsIs",
"rules": [ "rules": [
{ {
"ip": [ "ip": [
"geoip:private" "geoip:private"
], ],
"outboundTag": "direct", "outboundTag": "direct",
"port": null, "port": null,
"type": "field" "type": "field"
} }
]
},
"inbounds": [
{
"port": 1234,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "e2b39869-7e9e-411b-a561-00904419bed9",
"alterId": 100,
"testsEnabled": "VMessAEAD"
}
] ]
}, },
"tag": "tcp", "inbounds": [
"streamSettings": { {
"network": "tcp" "port": 1234,
} "protocol": "vmess",
} "settings": {
], "clients": [
"outbounds": [ {
{ "id": "e2b39869-7e9e-411b-a561-00904419bed9",
"protocol": "freedom", "alterId": 100,
"settings": { "testsEnabled": "VMessAEAD"
}, }
"tag": "direct" ]
} },
] "tag": "tcp",
"streamSettings": {
"network": "tcp"
}
}
],
"outbounds": [
{
"protocol": "freedom",
"settings": {
},
"tag": "direct"
}
]
} }
``` ```
@ -84,55 +84,55 @@
```yaml ```yaml
{ {
"log": { "log": {
"loglevel": "warning" "loglevel": "warning"
},
"routing": {
"domainStrategy": "AsIs",
"rules": [
{
"ip": [
"geoip:private"
],
"outboundTag": "blocked",
"port": null,
"type": "field"
}
]
},
"inbounds": [
{
"port": 1234,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "e2b39869-7e9e-411b-a561-00904419bed9",
"alterId": 100,
"testsEnabled": "VMessAEAD"
}
]
},
"tag": "tcp",
"streamSettings": {
"network": "tcp"
}
}
],
"outbounds": [
{
"protocol": "freedom",
"settings": {
},
"tag": "direct"
}, },
{ "routing": {
"protocol": "blackhole", "domainStrategy": "AsIs",
"settings": { "rules": [
}, {
"tag": "blocked" "ip": [
} "geoip:private"
] ],
"outboundTag": "blocked",
"port": null,
"type": "field"
}
]
},
"inbounds": [
{
"port": 1234,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "e2b39869-7e9e-411b-a561-00904419bed9",
"alterId": 100,
"testsEnabled": "VMessAEAD"
}
]
},
"tag": "tcp",
"streamSettings": {
"network": "tcp"
}
}
],
"outbounds": [
{
"protocol": "freedom",
"settings": {
},
"tag": "direct"
},
{
"protocol": "blackhole",
"settings": {
},
"tag": "blocked"
}
]
} }
``` ```