3x-ui/web/service/config.json

75 lines
1.2 KiB
JSON
Raw Normal View History

2023-02-09 22:18:06 +03:00
{
"log": {
2023-04-03 22:58:26 +03:00
"loglevel": "warning",
2023-04-18 08:52:04 +03:00
"error": "./error.log"
2023-02-09 22:18:06 +03:00
},
"api": {
2023-04-18 08:52:04 +03:00
"tag": "api",
2023-05-18 11:22:53 +03:00
"services": [
"HandlerService",
"LoggerService",
"StatsService"
]
2023-02-09 22:18:06 +03:00
},
"inbounds": [
{
2023-04-18 08:52:04 +03:00
"tag": "api",
2023-02-09 22:18:06 +03:00
"listen": "127.0.0.1",
"port": 62789,
"protocol": "dokodemo-door",
"settings": {
"address": "127.0.0.1"
2023-04-18 08:52:04 +03:00
}
2023-02-09 22:18:06 +03:00
}
],
"outbounds": [
{
"protocol": "freedom",
"settings": {}
},
{
2023-04-18 08:52:04 +03:00
"tag": "blocked",
2023-02-09 22:18:06 +03:00
"protocol": "blackhole",
2023-04-18 08:52:04 +03:00
"settings": {}
2023-02-09 22:18:06 +03:00
}
],
"policy": {
"levels": {
"0": {
2023-04-18 08:52:04 +03:00
"statsUserDownlink": true,
"statsUserUplink": true
2023-02-09 22:18:06 +03:00
}
},
"system": {
"statsInboundDownlink": true,
"statsInboundUplink": true
}
},
"routing": {
2023-04-03 22:58:26 +03:00
"domainStrategy": "IPIfNonMatch",
2023-02-09 22:18:06 +03:00
"rules": [
{
2023-04-18 08:52:04 +03:00
"type": "field",
2023-05-18 11:22:53 +03:00
"inboundTag": [
"api"
],
2023-04-18 08:52:04 +03:00
"outboundTag": "api"
2023-02-09 22:18:06 +03:00
},
{
2023-04-18 08:52:04 +03:00
"type": "field",
2023-04-03 22:58:26 +03:00
"outboundTag": "blocked",
2023-05-18 11:22:53 +03:00
"ip": [
"geoip:private"
]
2023-02-09 22:18:06 +03:00
},
{
2023-04-18 08:52:04 +03:00
"type": "field",
2023-02-09 22:18:06 +03:00
"outboundTag": "blocked",
2023-05-18 11:22:53 +03:00
"protocol": [
"bittorrent"
]
2023-02-09 22:18:06 +03:00
}
]
},
"stats": {}
2023-05-18 11:22:53 +03:00
}