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:
-rw-r--r--web/service/setting.go90
1 files changed, 46 insertions, 44 deletions
diff --git a/web/service/setting.go b/web/service/setting.go
index 4fe06517..2555caa1 100644
--- a/web/service/setting.go
+++ b/web/service/setting.go
@@ -24,50 +24,52 @@ import (
var xrayTemplateConfig string
var defaultValueMap = map[string]string{
- "xrayTemplateConfig": xrayTemplateConfig,
- "webListen": "",
- "webDomain": "",
- "webPort": "2053",
- "webCertFile": "",
- "webKeyFile": "",
- "secret": random.Seq(32),
- "webBasePath": "/",
- "sessionMaxAge": "60",
- "pageSize": "50",
- "expireDiff": "0",
- "trafficDiff": "0",
- "remarkModel": "-ieo",
- "timeLocation": "Local",
- "tgBotEnable": "false",
- "tgBotToken": "",
- "tgBotProxy": "",
- "tgBotAPIServer": "",
- "tgBotChatId": "",
- "tgRunTime": "@daily",
- "tgBotBackup": "false",
- "tgBotLoginNotify": "true",
- "tgCpu": "80",
- "tgLang": "en-US",
- "secretEnable": "false",
- "subEnable": "false",
- "subListen": "",
- "subPort": "2096",
- "subPath": "/sub/",
- "subDomain": "",
- "subCertFile": "",
- "subKeyFile": "",
- "subUpdates": "12",
- "subEncrypt": "true",
- "subShowInfo": "true",
- "subURI": "",
- "subJsonPath": "/json/",
- "subJsonURI": "",
- "subJsonFragment": "",
- "subJsonNoises": "",
- "subJsonMux": "",
- "subJsonRules": "",
- "datepicker": "gregorian",
- "warp": "",
+ "xrayTemplateConfig": xrayTemplateConfig,
+ "webListen": "",
+ "webDomain": "",
+ "webPort": "2053",
+ "webCertFile": "",
+ "webKeyFile": "",
+ "secret": random.Seq(32),
+ "webBasePath": "/",
+ "sessionMaxAge": "60",
+ "pageSize": "50",
+ "expireDiff": "0",
+ "trafficDiff": "0",
+ "remarkModel": "-ieo",
+ "timeLocation": "Local",
+ "tgBotEnable": "false",
+ "tgBotToken": "",
+ "tgBotProxy": "",
+ "tgBotAPIServer": "",
+ "tgBotChatId": "",
+ "tgRunTime": "@daily",
+ "tgBotBackup": "false",
+ "tgBotLoginNotify": "true",
+ "tgCpu": "80",
+ "tgLang": "en-US",
+ "secretEnable": "false",
+ "subEnable": "false",
+ "subListen": "",
+ "subPort": "2096",
+ "subPath": "/sub/",
+ "subDomain": "",
+ "subCertFile": "",
+ "subKeyFile": "",
+ "subUpdates": "12",
+ "subEncrypt": "true",
+ "subShowInfo": "true",
+ "subURI": "",
+ "subJsonPath": "/json/",
+ "subJsonURI": "",
+ "subJsonFragment": "",
+ "subJsonNoises": "",
+ "subJsonMux": "",
+ "subJsonRules": "",
+ "datepicker": "gregorian",
+ "warp": "",
+ "externalTrafficInformEnable": "false",
+ "externalTrafficInformURI": "",
}
type SettingService struct{}