mirror of
https://github.com/v2fly/v2ray-examples.git
synced 2025-09-17 20:54:35 +08:00
update community contributed v5 template
This commit is contained in:
110
v5/Subscription/subscription.json
Normal file
110
v5/Subscription/subscription.json
Normal file
@@ -0,0 +1,110 @@
|
||||
{
|
||||
"log": {
|
||||
"error": {
|
||||
"level": "Debug",
|
||||
"type": "Console"
|
||||
},
|
||||
"access": {
|
||||
"type": "None"
|
||||
}
|
||||
},
|
||||
"outbounds": [
|
||||
{
|
||||
"tag": "deny",
|
||||
"protocol": "blackhole"
|
||||
},
|
||||
{
|
||||
"tag": "direct",
|
||||
"protocol": "freedom"
|
||||
}
|
||||
],
|
||||
"router": {
|
||||
"domainStrategy": "AsIs",
|
||||
"rule": [
|
||||
{
|
||||
"balancingTag": "subscriptions",
|
||||
"inboundTag": [
|
||||
"user-in"
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "commander",
|
||||
"inboundTag": [
|
||||
"commander"
|
||||
]
|
||||
}
|
||||
],
|
||||
"balancingRule": [
|
||||
{
|
||||
"tag": "subscriptions",
|
||||
"outbound_selector": [
|
||||
"subscription_"
|
||||
],
|
||||
"strategy": "leastping"
|
||||
}
|
||||
]
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"tag": "user-in",
|
||||
"protocol": "socks",
|
||||
"settings": {
|
||||
"udpEnabled": true,
|
||||
"address": "127.0.0.1",
|
||||
"packetEncoding": "Packet"
|
||||
},
|
||||
"port": 19828,
|
||||
"listen": "99.99.99.99"
|
||||
},
|
||||
{
|
||||
"tag": "commander",
|
||||
"protocol": "dokodemo-door",
|
||||
"settings": {
|
||||
"address": "127.0.0.1",
|
||||
"port": 65535,
|
||||
"networks": ["tcp"]
|
||||
},
|
||||
"port": 19829,
|
||||
"listen": "127.0.0.1"
|
||||
}
|
||||
],
|
||||
"services": {
|
||||
"backgroundObservatory": {
|
||||
"subject_selector": [
|
||||
"subscription_"
|
||||
],
|
||||
"probe_interval": 5000000000
|
||||
},
|
||||
"subscription": {
|
||||
"imports": [
|
||||
{
|
||||
"name": "AAA",
|
||||
"url": "",
|
||||
"tag_prefix": "subscription_aaa",
|
||||
"importUsingTag": "direct",
|
||||
"default_expire_seconds": 3600
|
||||
},
|
||||
{
|
||||
"name": "BBB",
|
||||
"url": "",
|
||||
"tag_prefix": "subscription_bbb",
|
||||
"importUsingTag": "direct",
|
||||
"default_expire_seconds": 3600
|
||||
},
|
||||
{
|
||||
"name": "CCC",
|
||||
"url": "",
|
||||
"tag_prefix": "subscription_ccc",
|
||||
"importUsingTag": "direct",
|
||||
"default_expire_seconds": 3600
|
||||
}
|
||||
]
|
||||
},
|
||||
"commander": {
|
||||
"tag": "commander",
|
||||
"name": [
|
||||
"observatory"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
51
v5/Subscription/subscription_subs
Normal file
51
v5/Subscription/subscription_subs
Normal file
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"outbounds": [
|
||||
// v2ray 支持的订阅格式就是 V5 配置中的出站格式,不过 TAG 有些不同,需要注意且区分不同 TagName 的值,目前支持的格式还有限,在逐步适配中。
|
||||
// metadata.TagName 要区分
|
||||
// hysteria2 和 trojan 协议暂时无法解析
|
||||
// 实际场景应用中,因为 v2ray 订阅解析器的问题,不能有注释,否则会无法解析
|
||||
// 同样实际场景应用中,因为 v2ray 订阅解析器的问题,mux 无法被解析造成无法订阅到
|
||||
{
|
||||
"protocol": "vmess",
|
||||
"settings": {
|
||||
"address": "0.0.0.0",
|
||||
"port": 100000,
|
||||
"uuid": "0000000-0000000-0000000-0000000-0000000"
|
||||
},
|
||||
"streamSettings": {
|
||||
"transport": "ws",
|
||||
"transportSettings": {
|
||||
"path": "/000000000000000000000"
|
||||
}
|
||||
},
|
||||
"metadata": {
|
||||
"TagName": "AAA_vmess+ws"
|
||||
}
|
||||
},
|
||||
{
|
||||
"protocol": "vmess",
|
||||
"settings": {
|
||||
"address": "0.0.0.0",
|
||||
"port": 100000,
|
||||
"uuid": "0000000-0000000-0000000-0000000-0000000"
|
||||
},
|
||||
"streamSettings": {
|
||||
"security": "tls",
|
||||
"securitySettings": {
|
||||
"allow_insecure_if_pinned_peer_certificate": true,
|
||||
"pinned_peer_certificate_chain_sha256": [
|
||||
"000000000000000000000000000000000000000000"
|
||||
],
|
||||
"server_name": "000000000000000000000.com"
|
||||
},
|
||||
"transport": "ws",
|
||||
"transportSettings": {
|
||||
"path": "/000000000000000000000000000000000000000000"
|
||||
}
|
||||
},
|
||||
"metadata": {
|
||||
"TagName": "AAA_vmess+ws+tls"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user