appstore-1panel/apps/flarum/versions/1.7.1/config.json

105 lines
2.3 KiB
JSON
Raw Normal View History

{
"formFields": [
{
"type": "apps",
"labelZh": "数据库服务",
"labelEn": "Database Service",
"required": true,
"default": "mysql",
"values": [{
"label": "MySQL",
"value": "mysql"
}],
"child": {
"type": "service",
"labelZh": "数据库服务",
"labelEn": "Database Service",
"required": true,
"default": "",
"envKey": "PANEL_DB_HOST"
},
"params": [
{
"type": "param",
"key": "mysql",
"value": "3306",
"envKey": "FLARUM_DB_PORT"
},
{
"type": "param",
"key": "postgresql",
"value": "5432",
"envKey": "FLARUM_DB_PORT"
}
]
},
{
"type": "text",
"labelZh": "数据库名",
"labelEn": "Database",
"required": true,
"default": "flarum",
"random": true,
"rule": "paramCommon",
"envKey": "PANEL_DB_NAME"
},
{
"type": "text",
"labelZh": "数据库用户",
"labelEn": "User",
"required": true,
"default": "flarum",
"random": true,
"rule": "paramCommon",
"envKey": "PANEL_DB_USER"
},
{
"type": "password",
"labelZh": "数据库用户密码",
"labelEn": "Password",
"required": true,
"default": "flarum",
"random": true,
"rule": "paramComplexity",
"envKey": "PANEL_DB_USER_PASSWORD"
},
{
"type": "text",
"labelZh": "数据库前缀",
"labelEn": "Database prefix",
"required": true,
"default": "flarum_",
"envKey": "PANEL_DB_PREFIX"
},
{
"type": "number",
"labelZh": "端口",
"labelEn": "Port",
"required": true,
"default": 40020,
"rule": "paramPort",
"envKey": "PANEL_APP_PORT_HTTP",
"edit": true
},
{
"type": "text",
"labelZh": "数据存放文件夹",
"labelEn": "Data storage folder",
"required": true,
"default": "./data",
"envKey": "DATA_PATH",
"edit": true
},
{
"type": "text",
"labelZh": "本机IP",
"labelEn": "Local IP",
"required": true,
"default": "127.0.0.1",
"envKey": "Dockerized_HOST",
"edit": true
}
]
}