From d5e19ce0772d2b0f79419481b125d11cabf144dc Mon Sep 17 00:00:00 2001 From: mhsanaei Date: Thu, 17 Oct 2024 13:06:00 +0200 Subject: [PATCH] update config --- sub/default.json | 8 +++--- web/service/config.json | 54 ++++++++++++++++++++++++++--------------- 2 files changed, 40 insertions(+), 22 deletions(-) diff --git a/sub/default.json b/sub/default.json index 3f8c86a6..256aab13 100644 --- a/sub/default.json +++ b/sub/default.json @@ -43,11 +43,13 @@ }, "outbounds": [ { - "tag": "direct", "protocol": "freedom", "settings": { - "domainStrategy": "UseIP" - } + "domainStrategy": "UseIP", + "noises": [], + "redirect": "" + }, + "tag": "direct" }, { "tag": "block", diff --git a/web/service/config.json b/web/service/config.json index 4d03065d..cb0e66fc 100644 --- a/web/service/config.json +++ b/web/service/config.json @@ -1,34 +1,44 @@ { - "log": { - "loglevel": "warning" - }, "api": { - "tag": "api", - "services": ["HandlerService", "LoggerService", "StatsService"] + "services": [ + "HandlerService", + "LoggerService", + "StatsService" + ], + "tag": "api" }, "inbounds": [ { - "tag": "api", "listen": "127.0.0.1", "port": 62789, "protocol": "dokodemo-door", "settings": { "address": "127.0.0.1" - } + }, + "tag": "api" } ], + "log": { + "access": "none", + "dnsLog": false, + "error": "", + "loglevel": "warning", + "maskAddress": "" + }, "outbounds": [ { - "tag": "direct", "protocol": "freedom", "settings": { - "domainStrategy": "UseIP" - } + "domainStrategy": "UseIP", + "noises": [], + "redirect": "" + }, + "tag": "direct" }, { - "tag": "blocked", "protocol": "blackhole", - "settings": {} + "settings": {}, + "tag": "blocked" } ], "policy": { @@ -47,19 +57,25 @@ "domainStrategy": "AsIs", "rules": [ { - "type": "field", - "inboundTag": ["api"], - "outboundTag": "api" + "inboundTag": [ + "api" + ], + "outboundTag": "api", + "type": "field" }, { - "type": "field", + "ip": [ + "geoip:private" + ], "outboundTag": "blocked", - "ip": ["geoip:private"] + "type": "field" }, { - "type": "field", "outboundTag": "blocked", - "protocol": ["bittorrent"] + "protocol": [ + "bittorrent" + ], + "type": "field" } ] },