|
@@ -1,25 +1,22 @@
|
|
|
{
|
|
|
"log": {
|
|
|
"loglevel": "warning",
|
|
|
- "access": "./access.log"
|
|
|
+ "access": "./access.log",
|
|
|
+ "error": "./error.log"
|
|
|
},
|
|
|
"api": {
|
|
|
- "services": [
|
|
|
- "HandlerService",
|
|
|
- "LoggerService",
|
|
|
- "StatsService"
|
|
|
- ],
|
|
|
- "tag": "api"
|
|
|
+ "tag": "api",
|
|
|
+ "services": ["HandlerService", "LoggerService", "StatsService"]
|
|
|
},
|
|
|
"inbounds": [
|
|
|
{
|
|
|
+ "tag": "api",
|
|
|
"listen": "127.0.0.1",
|
|
|
"port": 62789,
|
|
|
"protocol": "dokodemo-door",
|
|
|
"settings": {
|
|
|
"address": "127.0.0.1"
|
|
|
- },
|
|
|
- "tag": "api"
|
|
|
+ }
|
|
|
}
|
|
|
],
|
|
|
"outbounds": [
|
|
@@ -28,16 +25,16 @@
|
|
|
"settings": {}
|
|
|
},
|
|
|
{
|
|
|
+ "tag": "blocked",
|
|
|
"protocol": "blackhole",
|
|
|
- "settings": {},
|
|
|
- "tag": "blocked"
|
|
|
+ "settings": {}
|
|
|
}
|
|
|
],
|
|
|
"policy": {
|
|
|
"levels": {
|
|
|
"0": {
|
|
|
- "statsUserUplink": true,
|
|
|
- "statsUserDownlink": true
|
|
|
+ "statsUserDownlink": true,
|
|
|
+ "statsUserUplink": true
|
|
|
}
|
|
|
},
|
|
|
"system": {
|
|
@@ -49,27 +46,21 @@
|
|
|
"domainStrategy": "IPIfNonMatch",
|
|
|
"rules": [
|
|
|
{
|
|
|
- "inboundTag": [
|
|
|
- "api"
|
|
|
- ],
|
|
|
- "outboundTag": "api",
|
|
|
- "type": "field"
|
|
|
+ "type": "field",
|
|
|
+ "inboundTag": ["api"],
|
|
|
+ "outboundTag": "api"
|
|
|
},
|
|
|
{
|
|
|
+ "type": "field",
|
|
|
"outboundTag": "blocked",
|
|
|
- "ip": [
|
|
|
- "geoip:private"
|
|
|
- ],
|
|
|
- "type": "field"
|
|
|
+ "ip": ["geoip:private"]
|
|
|
},
|
|
|
{
|
|
|
+ "type": "field",
|
|
|
"outboundTag": "blocked",
|
|
|
- "protocol": [
|
|
|
- "bittorrent"
|
|
|
- ],
|
|
|
- "type": "field"
|
|
|
+ "protocol": ["bittorrent"]
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
"stats": {}
|
|
|
-}
|
|
|
+}
|