2023-02-07 15:21:24 +08:00
|
|
|
{
|
2023-03-06 14:16:03 +08:00
|
|
|
|
2023-02-07 15:21:24 +08:00
|
|
|
"formFields": [
|
|
|
|
{
|
2023-03-06 14:16:03 +08:00
|
|
|
"type": "apps",
|
2023-02-07 15:21:24 +08:00
|
|
|
"labelZh": "数据库服务",
|
|
|
|
"labelEn": "Database Service",
|
|
|
|
"required": true,
|
2023-03-06 14:16:03 +08:00
|
|
|
"default": "mysql",
|
|
|
|
"values": [{
|
|
|
|
"label": "MySQL",
|
|
|
|
"value": "mysql"
|
|
|
|
}],
|
|
|
|
"envKey": "HALO_PLATFORM",
|
|
|
|
"child": {
|
|
|
|
"type": "service",
|
|
|
|
"labelZh": "数据库服务",
|
|
|
|
"labelEn": "Database Service",
|
|
|
|
"required": true,
|
|
|
|
"default": "",
|
|
|
|
"envKey": "PANEL_DB_HOST"
|
|
|
|
},
|
|
|
|
"params": [
|
|
|
|
{
|
|
|
|
"type": "param",
|
|
|
|
"key": "mysql",
|
|
|
|
"value": "3306",
|
|
|
|
"envKey": "HALO_DB_PORT"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "param",
|
|
|
|
"key": "postgresql",
|
|
|
|
"value": "5432",
|
|
|
|
"envKey": "HALO_DB_PORT"
|
|
|
|
}
|
|
|
|
]
|
2023-02-07 15:21:24 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "text",
|
|
|
|
"labelZh": "数据库名",
|
|
|
|
"labelEn": "Database",
|
|
|
|
"required": true,
|
2023-03-01 17:35:36 +08:00
|
|
|
"default": "halo",
|
|
|
|
"random": true,
|
|
|
|
"rule": "paramCommon",
|
2023-02-07 15:21:24 +08:00
|
|
|
"envKey": "PANEL_DB_NAME"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "text",
|
|
|
|
"labelZh": "数据库用户",
|
|
|
|
"labelEn": "User",
|
|
|
|
"required": true,
|
2023-03-01 17:35:36 +08:00
|
|
|
"default": "halo",
|
|
|
|
"random": true,
|
|
|
|
"rule": "paramCommon",
|
2023-02-07 15:21:24 +08:00
|
|
|
"envKey": "PANEL_DB_USER"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "password",
|
|
|
|
"labelZh": "数据库用户密码",
|
|
|
|
"labelEn": "Password",
|
|
|
|
"required": true,
|
2023-03-01 17:35:36 +08:00
|
|
|
"default": "halo",
|
|
|
|
"random": true,
|
|
|
|
"rule": "paramComplexity",
|
2023-02-07 15:21:24 +08:00
|
|
|
"envKey": "PANEL_DB_USER_PASSWORD"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "text",
|
|
|
|
"labelZh": "超级管理员用户名",
|
|
|
|
"labelEn": "Admin Username",
|
|
|
|
"required": true,
|
2023-03-06 14:16:03 +08:00
|
|
|
"default": "admin",
|
2023-03-01 17:35:36 +08:00
|
|
|
"random": true,
|
|
|
|
"rule": "paramCommon",
|
2023-02-07 15:21:24 +08:00
|
|
|
"envKey": "HALO_ADMIN"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "password",
|
|
|
|
"labelZh": "超级管理员密码",
|
|
|
|
"labelEn": "Admin Password",
|
|
|
|
"required": true,
|
2023-03-01 17:35:36 +08:00
|
|
|
"default": "halo",
|
|
|
|
"random": true,
|
|
|
|
"rule": "paramComplexity",
|
2023-02-07 15:21:24 +08:00
|
|
|
"envKey": "HALO_ADMIN_PASSWORD"
|
|
|
|
},
|
2023-02-20 17:43:35 +08:00
|
|
|
{
|
|
|
|
"type": "text",
|
|
|
|
"labelZh": "外部访问地址",
|
|
|
|
"labelEn": "External URL",
|
|
|
|
"required": true,
|
2023-02-22 18:41:45 +08:00
|
|
|
"default": "http://localhost:8080",
|
2023-03-01 17:35:36 +08:00
|
|
|
"rule": "paramExtUrl",
|
2023-02-20 17:43:35 +08:00
|
|
|
"envKey": "HALO_EXTERNAL_URL"
|
|
|
|
},
|
2023-02-07 15:21:24 +08:00
|
|
|
{
|
|
|
|
"type": "number",
|
|
|
|
"labelZh": "端口",
|
|
|
|
"labelEn": "Port",
|
|
|
|
"required": true,
|
|
|
|
"default": 8080,
|
2023-03-01 17:35:36 +08:00
|
|
|
"rule": "paramPort",
|
2023-02-07 15:21:24 +08:00
|
|
|
"envKey": "PANEL_APP_PORT_HTTP"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|