Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHamidreza Ghavami <hamid.r.gh.1998@gmail.com>2023-04-18 08:52:04 +0300
committerHamidreza Ghavami <hamid.r.gh.1998@gmail.com>2023-04-18 08:52:04 +0300
commit936f2e6ec2c0380ce3c1b8cd93835383741f5452 (patch)
tree3632ff3010529ba190154f4caa718a53f2f4840b /web/service/config.json
parent3e5984930ed24261c1cc459d11909a053dce18f3 (diff)
update config.json
Diffstat (limited to 'web/service/config.json')
-rw-r--r--web/service/config.json45
1 files changed, 18 insertions, 27 deletions
diff --git a/web/service/config.json b/web/service/config.json
index 34e2038f..9d8d2d9f 100644
--- a/web/service/config.json
+++ b/web/service/config.json
@@ -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": {}
-} \ No newline at end of file
+}