complete example

This commit is contained in:
Yuzuki616 2023-09-16 20:53:09 +08:00
parent 1b3e173a8a
commit 088fb8f848

View File

@ -4,7 +4,6 @@
// info, warn, error, none // info, warn, error, none
"Level": "error", "Level": "error",
// //
"Output": "" "Output": ""
}, },
@ -12,10 +11,8 @@
{ {
// Core // Core
"Type": "sing", "Type": "sing",
// Core // Core
"Name": "sing1", "Name": "sing1",
"Log": { "Log": {
// SingBox log // SingBox log
@ -29,7 +26,6 @@
"Server": "time.apple.com", "Server": "time.apple.com",
"ServerPort": 0 "ServerPort": 0
}, },
// SingBoxSingBox // SingBoxSingBox
"OriginalPath": "/etc/V2bX/sing_origin.json" "OriginalPath": "/etc/V2bX/sing_origin.json"
}, },
@ -50,13 +46,10 @@
}, },
// //
"AssetPath": "", "AssetPath": "",
// DNS // DNS
"DnsConfigPath": "", "DnsConfigPath": "",
// //
"RouteConfigPath": "", "RouteConfigPath": "",
// //
"ConnectionConfig": { "ConnectionConfig": {
// https://xtls.github.io/config/policy.html#levelpolicyobject // https://xtls.github.io/config/policy.html#levelpolicyobject
@ -69,10 +62,8 @@
"statsUserDownlink": false, "statsUserDownlink": false,
"bufferSize": 4 "bufferSize": 4
}, },
// Inbound // Inbound
"InboundConfigPath": "", "InboundConfigPath": "",
// Outbound // Outbound
"OutboundConfigPath": "" "OutboundConfigPath": ""
} }
@ -81,6 +72,7 @@
// Node // Node
{ {
// 1 // 1
// sing
// Node便 // Node便
// //
@ -155,6 +147,7 @@
// //
"ExpireTime": 60 "ExpireTime": 60
} }
}, },
@ -162,6 +155,7 @@
"CertConfig": { "CertConfig": {
// nonehttpdnsself // nonehttpdnsself
"CertMode": "none", "CertMode": "none",
"RejectUnknownSni": false, "RejectUnknownSni": false,
// //
@ -188,40 +182,69 @@
{ {
// //
"Include": "../example/config_full_node1.json", "Include": "../example/config_full_node1.json",
} },
/*, {
{ // xray
// 2
// ApiConfig
"ApiConfig": {
"ApiHost": "http://127.0.0.1",
"ApiKey": "test",
"NodeID": 33,
"Timeout": 30,
},
// ControllerConfig
"Options": {
"Core": "sing",
"EnableProxyProtocol": true,
"EnableTFO": true
"DomainStrategy": "ipv4_only",
// More
}
},
{
// Xray
"Core": "xray", "Core": "xray",
"ApiHost": "http://127.0.0.1", "ApiHost": "http://127.0.0.1",
"ApiKey": "test", "ApiKey": "test",
"NodeID": 33, "NodeID": 33,
"NodeType": "shadowsocks", "NodeType": "shadowsocks",
"Timeout": 30, "Timeout": 30,
"ListenIP": "0.0.0.0", "ListenIP": "0.0.0.0",
"SendIP": "0.0.0.0", "SendIP": "0.0.0.0",
"EnableProxyProtocol": true, "EnableProxyProtocol": true,
"EnableTFO": true "EnableTFO": true,
// More // sing
}*/
// DNS
"EnableDNS": false,
// DNSAsIsUseIPUseIPv4UseIPv6
"DNSType": "AsIs",
// udp over tcp
"EnableUot": false,
// IVCheck
"DisableIVCheck": false,
//
"DisableSniffing": false,
//
"EnableFallback": false,
//
"FallBackConfigs":{
// https://xtls.github.io/config/features/fallback.html#fallbackobject
"SNI": "",
"Alpn": "",
"Path": "",
"Dest": "",
"ProxyProtocolVer": 0,
}
},
{
// 2
// ApiConfig
"ApiConfig": {
"ApiHost": "http://127.0.0.1",
"ApiKey": "test",
"NodeID": 33,
"Timeout": 30,
},
// ControllerConfig
"Options": {
"Core": "sing",
"EnableProxyProtocol": true,
"EnableTFO": true,
"DomainStrategy": "ipv4_only",
// More
}
}
] ]
} }