Format examples

This commit is contained in:
Sergei Maklagin
2025-06-15 22:23:25 +03:00
parent ae9e7aa5f4
commit 85a1a8a53b
4 changed files with 199 additions and 217 deletions

View File

@@ -1,84 +1,71 @@
{
"log":{
"level":"error"
"log": {
"level": "error"
},
"dns":{
"servers":[
"dns": {
"servers": [
{
"address":"local",
"detour":"direct"
"address": "local",
"detour": "direct"
}
]
},
"endpoints":[
"endpoints": [
{
"type":"wireguard",
"tag":"wireguard-out",
"system":false,
"name":"",
"mtu":1408,
"address":[],
"private_key":"",
"listen_port":10000,
"peers":[
"type": "wireguard",
"tag": "wireguard-out",
"mtu": 1408,
"address": null,
"private_key": "",
"listen_port": 10000,
"peers": [
{
"address":"example.com",
"port":10001,
"public_key":"",
"pre_shared_key":"",
"allowed_ips":[],
"persistent_keepalive_interval":0,
"reserved":[
0,
0,
0
]
"address": "example.com",
"port": 10001,
"reserved": "AAAA"
}
],
"udp_timeout":"",
"workers":0,
"amnezia":{
"jc":120,
"jmin":23,
"jmax":911,
"s1":0,
"s2":0,
"h1":1,
"h2":2,
"h3":3,
"h4":4
"udp_timeout": "5m0s",
"amnezia": {
"jc": 120,
"jmin": 23,
"jmax": 911,
"h1": 1,
"h2": 2,
"h3": 3,
"h4": 4
}
}
],
"inbounds":[
"inbounds": [
{
"type":"mixed",
"tag":"mixed-in",
"listen_port":7897
"type": "mixed",
"tag": "mixed-in",
"listen_port": 7897
}
],
"outbounds":[
"outbounds": [
{
"type":"direct",
"tag":"direct"
"type": "direct",
"tag": "direct"
},
{
"type":"dns",
"tag":"dns-out"
"type": "dns",
"tag": "dns-out"
}
],
"route":{
"rules":[
"route": {
"rules": [
{
"protocol":"dns",
"outbound":"dns-out"
"protocol": "dns",
"outbound": "dns-out"
},
{
"port":53,
"outbound":"dns-out"
"port": 53,
"outbound": "dns-out"
}
],
"final":"wireguard-out",
"auto_detect_interface":true
"final": "wireguard-out",
"auto_detect_interface": true
}
}