From 936f2e6ec2c0380ce3c1b8cd93835383741f5452 Mon Sep 17 00:00:00 2001 From: Hamidreza Ghavami Date: Tue, 18 Apr 2023 10:22:04 +0430 Subject: update config.json --- web/service/config.json | 45 ++++++++++++++++++--------------------------- 1 file changed, 18 insertions(+), 27 deletions(-) (limited to 'web') 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 +} -- cgit v1.2.3 From 4af626bb4b92570032a68e55ece7cb208821fa9f Mon Sep 17 00:00:00 2001 From: Hamidreza Ghavami Date: Tue, 18 Apr 2023 11:21:12 +0430 Subject: update html of setting.html --- web/html/xui/setting.html | 231 +++++++++++++++++++++++++--------------------- 1 file changed, 124 insertions(+), 107 deletions(-) (limited to 'web') diff --git a/web/html/xui/setting.html b/web/html/xui/setting.html index 0218aea8..7691a284 100644 --- a/web/html/xui/setting.html +++ b/web/html/xui/setting.html @@ -24,121 +24,138 @@ background: white; } + - - {{ template "commonSider" . }} - - - - - - {{ i18n "pages.setting.save" }} - {{ i18n "pages.setting.restartPanel" }} - - - + + {{ template "commonSider" . }} + + + + + + {{ i18n "pages.setting.save" }} + {{ i18n "pages.setting.restartPanel" }} + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + {{ i18n "confirm" }} + + + + + + + {{ i18n "pages.setting.generalConfigs"}} + + + + + {{ i18n "pages.setting.countryConfigs"}} + + + + + {{ i18n "pages.setting.ipv4Configs"}} + + + {{ i18n "pages.setting.warpConfigs"}} + + + + + + {{ i18n "pages.setting.advancedTemplate"}} + + + + + + + + + + + + {{ i18n "pages.setting.completeTemplate"}} + + + + + + + + + + + + + + + + + + + + + + + + + - -{{template "js" .}} -{{template "component/setting"}} - + - \ No newline at end of file + + -- cgit v1.2.3 From 672fd1da196d94a5ca15cae65ea9572843dc4aa8 Mon Sep 17 00:00:00 2001 From: Hamidreza Ghavami Date: Tue, 18 Apr 2023 11:26:51 +0430 Subject: update translation --- web/translation/translate.en_US.toml | 32 ++++++++++++++++++++++++--- web/translation/translate.fa_IR.toml | 40 ++++++++++++++++++++++++++++------ web/translation/translate.zh_Hans.toml | 36 +++++++++++++++++++++++++----- 3 files changed, 93 insertions(+), 15 deletions(-) (limited to 'web') diff --git a/web/translation/translate.en_US.toml b/web/translation/translate.en_US.toml index 97e65b5a..42442159 100644 --- a/web/translation/translate.en_US.toml +++ b/web/translation/translate.en_US.toml @@ -217,16 +217,42 @@ "newPassword" = "New Password" "advancedTemplate" = "Advanced template parts" "completeTemplate" = "Complete template of Xray configuration" +"generalConfigs" = "General Configs" +"countryConfigs" = "Country Configs" +"ipv4Configs" = "IPv4 Configs" +"warpConfigs" = "WARP Configs" "xrayConfigTemplate" = "Xray Configuration Template" "xrayConfigTemplateDesc" = "Generate the final xray configuration file based on this template, restart the panel to take effect." "xrayConfigTorrent" = "Ban bittorrent usage" "xrayConfigTorrentDesc" = "Change the configuration template to avoid using bittorrent by users, restart the panel to take effect" "xrayConfigPrivateIp" = "Ban private IP r