feat: 应用参数增加规则校验

This commit is contained in:
zhengkunwang223 2023-03-01 17:35:36 +08:00
parent bacbead1bd
commit 781d329b67
19 changed files with 118 additions and 30 deletions

View File

@ -14,7 +14,9 @@
"labelZh": "数据库名",
"labelEn": "Database",
"required": true,
"default": "random",
"default": "de",
"random": true,
"rule": "paramCommon",
"envKey": "PANEL_DB_NAME"
},
{
@ -22,7 +24,9 @@
"labelZh": "数据库用户",
"labelEn": "User",
"required": true,
"default": "random",
"default": "de",
"random": true,
"rule": "paramCommon",
"envKey": "PANEL_DB_USER"
},
{
@ -30,7 +34,9 @@
"labelZh": "数据库用户密码",
"labelEn": "Password",
"required": true,
"default": "random",
"default": "de",
"random": true,
"rule": "paramComplexity",
"envKey": "PANEL_DB_USER_PASSWORD"
},
{
@ -39,6 +45,8 @@
"labelEn": "Admin Password",
"required": true,
"default": "admin",
"random": true,
"rule": "paramCommon",
"envKey": "DE_ADMIN",
"disabled": true
},
@ -48,6 +56,8 @@
"labelEn": "Admin Password",
"required": true,
"default": "dataease",
"random": true,
"rule": "paramComplexity",
"envKey": "DE_ADMIN_PASSWORD",
"disabled": true
},
@ -57,6 +67,7 @@
"labelEn": "Port",
"required": true,
"default": 8080,
"rule": "paramPort",
"envKey": "PANEL_APP_PORT_HTTP"
}
]

View File

@ -6,6 +6,7 @@
"labelEn": "Port",
"required": true,
"default": 5000,
"rule": "paramPort",
"envKey": "PANEL_APP_PORT_HTTP"
}
]

View File

@ -16,6 +16,7 @@
"labelEn": "HTTP Port",
"required": true,
"default": 8090,
"rule": "paramPort",
"envKey": "PANEL_APP_PORT_HTTP"
},
{
@ -24,6 +25,7 @@
"labelEn": "HTTPS Port",
"required": true,
"default": 8443,
"rule": "paramPort",
"envKey": "PANEL_APP_PORT_HTTPS"
},
{
@ -32,6 +34,7 @@
"labelEn": "SSH Port",
"required": true,
"default": 2229,
"rule": "paramPort",
"envKey": "JENKINS_SSH_PORT"
}
]

View File

@ -14,7 +14,9 @@
"labelZh": "数据库名",
"labelEn": "Database",
"required": true,
"default": "random",
"default": "halo",
"random": true,
"rule": "paramCommon",
"envKey": "PANEL_DB_NAME"
},
{
@ -22,7 +24,9 @@
"labelZh": "数据库用户",
"labelEn": "User",
"required": true,
"default": "random",
"default": "halo",
"random": true,
"rule": "paramCommon",
"envKey": "PANEL_DB_USER"
},
{
@ -30,7 +34,9 @@
"labelZh": "数据库用户密码",
"labelEn": "Password",
"required": true,
"default": "random",
"default": "halo",
"random": true,
"rule": "paramComplexity",
"envKey": "PANEL_DB_USER_PASSWORD"
},
{
@ -38,7 +44,9 @@
"labelZh": "超级管理员用户名",
"labelEn": "Admin Username",
"required": true,
"default": "admin",
"default": "halo",
"random": true,
"rule": "paramCommon",
"envKey": "HALO_ADMIN"
},
{
@ -46,7 +54,9 @@
"labelZh": "超级管理员密码",
"labelEn": "Admin Password",
"required": true,
"default": "random",
"default": "halo",
"random": true,
"rule": "paramComplexity",
"envKey": "HALO_ADMIN_PASSWORD"
},
{
@ -55,6 +65,7 @@
"labelEn": "External URL",
"required": true,
"default": "http://localhost:8080",
"rule": "paramExtUrl",
"envKey": "HALO_EXTERNAL_URL"
},
{
@ -63,6 +74,7 @@
"labelEn": "Port",
"required": true,
"default": 8080,
"rule": "paramPort",
"envKey": "PANEL_APP_PORT_HTTP"
}
]

View File

@ -14,7 +14,9 @@
"labelZh": "数据库名",
"labelEn": "Database",
"required": true,
"default": "random",
"default": "halo",
"random": true,
"rule": "paramCommon",
"envKey": "PANEL_DB_NAME"
},
{
@ -22,7 +24,9 @@
"labelZh": "数据库用户",
"labelEn": "User",
"required": true,
"default": "random",
"default": "halo",
"random": true,
"rule": "paramCommon",
"envKey": "PANEL_DB_USER"
},
{
@ -30,7 +34,9 @@
"labelZh": "数据库用户密码",
"labelEn": "Password",
"required": true,
"default": "random",
"default": "halo",
"random": true,
"rule": "paramComplexity",
"envKey": "PANEL_DB_USER_PASSWORD"
},
{
@ -39,6 +45,8 @@
"labelEn": "Admin Username",
"required": true,
"default": "admin",
"random": true,
"rule": "paramCommon",
"envKey": "HALO_ADMIN"
},
{
@ -46,7 +54,9 @@
"labelZh": "超级管理员密码",
"labelEn": "Admin Password",
"required": true,
"default": "random",
"default": "halo",
"random": true,
"rule": "paramComplexity",
"envKey": "HALO_ADMIN_PASSWORD"
},
{
@ -55,6 +65,7 @@
"labelEn": "External URL",
"required": true,
"default": "http://localhost:8080",
"rule": "paramExtUrl",
"envKey": "HALO_EXTERNAL_URL"
},
{
@ -63,6 +74,7 @@
"labelEn": "Port",
"required": true,
"default": 8080,
"rule": "paramPort",
"envKey": "PANEL_APP_PORT_HTTP"
}
]

View File

@ -6,6 +6,7 @@
"labelEn": "Port",
"required": true,
"default": 8080,
"rule": "paramPort",
"envKey": "PANEL_APP_PORT_HTTP"
}
]

View File

@ -5,7 +5,9 @@
"labelZh": "root用户密码",
"labelEn": "Root Password",
"required": true,
"default": "random",
"default": "mariadb",
"random": true,
"rule": "paramComplexity",
"envKey": "PANEL_DB_ROOT_PASSWORD"
},
{
@ -14,6 +16,7 @@
"labelEn": "Port",
"required": true,
"default": 3306,
"rule": "paramPort",
"envKey": "PANEL_APP_PORT_HTTP"
}
]

View File

@ -5,7 +5,9 @@
"labelZh": "用户",
"labelEn": "User",
"required": true,
"default": "random",
"default": "minio",
"random": true,
"rule": "paramCommon",
"envKey": "MINIO_ROOT_USER"
},
{
@ -13,7 +15,9 @@
"labelZh": "密码",
"labelEn": "Password",
"required": true,
"default": "random",
"default": "minio",
"random": true,
"rule": "paramComplexity",
"envKey": "MINIO_ROOT_PASSWORD"
},
{
@ -22,6 +26,7 @@
"labelEn": "Port",
"required": true,
"default": 9000,
"rule": "paramPort",
"envKey": "PANEL_APP_PORT_HTTP"
},
{
@ -30,6 +35,7 @@
"labelEn": "Port",
"required": true,
"default": 9001,
"rule": "paramPort",
"envKey": "PORT_API"
}
]

View File

@ -5,7 +5,9 @@
"labelZh": "Root 用户名",
"labelEn": "Root Username",
"required": true,
"default": "random",
"default": "mongo",
"random": true,
"rule": "paramCommon",
"envKey": "PANEL_DB_ROOT_USER"
},
{
@ -13,7 +15,9 @@
"labelZh": "Root 用户密码",
"labelEn": "Root Password",
"required": true,
"default": "random",
"default": "mongo",
"random": true,
"rule": "paramComplexity",
"envKey": "PANEL_DB_ROOT_PASSWORD"
},
{
@ -22,6 +26,7 @@
"labelEn": "Port",
"required": true,
"default": 27017,
"rule": "paramPort",
"envKey": "PANEL_APP_PORT_HTTP"
}
]

View File

@ -5,7 +5,9 @@
"labelZh": "root用户密码",
"labelEn": "RootPassword",
"required": true,
"default": "random",
"default": "mysql",
"random": true,
"rule": "paramComplexity",
"envKey": "PANEL_DB_ROOT_PASSWORD"
},
{
@ -14,6 +16,7 @@
"labelEn": "Port",
"required": true,
"default": 3306,
"rule": "paramPort",
"envKey": "PANEL_APP_PORT_HTTP"
}
]

View File

@ -5,7 +5,9 @@
"labelZh": "root用户密码",
"labelEn": "Root Password",
"required": true,
"default": "random",
"default": "mysql",
"random": true,
"rule": "paramCommon",
"envKey": "PANEL_DB_ROOT_PASSWORD"
},
{
@ -14,6 +16,7 @@
"labelEn": "Port",
"required": true,
"default": 3306,
"rule": "paramPort",
"envKey": "PANEL_APP_PORT_HTTP"
}
]

View File

@ -6,6 +6,7 @@
"labelEn": "Port",
"required": true,
"default": 8081,
"rule": "paramPort",
"envKey": "PANEL_APP_PORT_HTTP"
}
]

View File

@ -15,6 +15,7 @@
"labelEn": "Port",
"required": true,
"default": 8089,
"rule": "paramPort",
"envKey": "PANEL_APP_PORT_HTTP"
}
]

View File

@ -5,7 +5,9 @@
"labelZh": "用户名",
"labelEn": "Username",
"required": true,
"default": "random",
"default": "pg",
"random": true,
"rule": "paramCommon",
"envKey": "PANEL_DB_ROOT_USER"
},
{
@ -13,7 +15,9 @@
"labelZh": "用户密码",
"labelEn": "Password",
"required": true,
"default": "random",
"default": "pg",
"random": true,
"rule": "paramComplexity",
"envKey": "PANEL_DB_ROOT_PASSWORD"
},
{
@ -22,6 +26,7 @@
"labelEn": "Port",
"required": true,
"default": 5432,
"rule": "paramPort",
"envKey": "PANEL_APP_PORT_HTTP"
}
]

View File

@ -14,7 +14,7 @@
"labelZh": "Redis 密码",
"labelEn": "Redis Password",
"required": true,
"default": "eYVX7EwVmmxKPCDmwMtyKVge8oLd2t81",
"default": "",
"envKey": "PANEL_DB_ROOT_PASSWORD"
},
{
@ -23,6 +23,7 @@
"labelEn": "Port",
"required": true,
"default": 8089,
"rule": "paramPort",
"envKey": "PANEL_APP_PORT_HTTP"
}
]

View File

@ -5,7 +5,9 @@
"labelZh": "密码",
"labelEn": "Password",
"required": true,
"default": "random",
"default": "jhkdjhkjdhsIUTYURTUYGHJGFFJ",
"random": true,
"rule": "paramComplexity",
"envKey": "PANEL_DB_ROOT_PASSWORD"
},
{
@ -14,6 +16,7 @@
"labelEn": "Port",
"required": true,
"default": 6379,
"rule": "paramPort",
"envKey": "PANEL_APP_PORT_HTTP"
}
]

View File

@ -5,7 +5,9 @@
"labelZh": "密码",
"labelEn": "Password",
"required": true,
"default": "random",
"default": "jhkdjhkjdhsIUTYURTUYGHJGFFJ",
"random": true,
"rule": "paramComplexity",
"envKey": "PANEL_DB_ROOT_PASSWORD"
},
{
@ -14,6 +16,7 @@
"labelEn": "Port",
"required": true,
"default": 6379,
"rule": "paramPort",
"envKey": "PANEL_APP_PORT_HTTP"
}
]

View File

@ -14,7 +14,9 @@
"labelZh": "数据库名",
"labelEn": "Database",
"required": true,
"default": "random",
"default": "word",
"random": true,
"rule": "paramCommon",
"envKey": "PANEL_DB_NAME"
},
{
@ -22,7 +24,9 @@
"labelZh": "数据库用户",
"labelEn": "User",
"required": true,
"default": "random",
"default": "word",
"random": true,
"rule": "paramCommon",
"envKey": "PANEL_DB_USER"
},
{
@ -30,7 +34,9 @@
"labelZh": "数据库用户密码",
"labelEn": "Password",
"required": true,
"default": "random",
"default": "word",
"random": true,
"rule": "paramComplexity",
"envKey": "PANEL_DB_USER_PASSWORD"
},
{
@ -39,6 +45,7 @@
"labelEn": "Port",
"required": true,
"default": 8080,
"rule": "paramPort",
"envKey": "PANEL_APP_PORT_HTTP"
}
]

View File

@ -14,7 +14,9 @@
"labelZh": "数据库名",
"labelEn": "Database",
"required": true,
"default": "random",
"default": "word",
"random": true,
"rule": "paramCommon",
"envKey": "PANEL_DB_NAME"
},
{
@ -22,7 +24,9 @@
"labelZh": "数据库用户",
"labelEn": "User",
"required": true,
"default": "random",
"default": "word",
"random": true,
"rule": "paramCommon",
"envKey": "PANEL_DB_USER"
},
{
@ -30,7 +34,9 @@
"labelZh": "数据库用户密码",
"labelEn": "Password",
"required": true,
"default": "random",
"default": "word",
"random": true,
"rule": "paramComplexity",
"envKey": "PANEL_DB_USER_PASSWORD"
},
{
@ -39,6 +45,7 @@
"labelEn": "Port",
"required": true,
"default": 8080,
"rule": "paramPort",
"envKey": "PANEL_APP_PORT_HTTP"
}
]