业务全部在独立模块仓库(foms / dbbackup / filesync / hostwatch), 本仓只做:入口组装、build、conf、start/stop、首页、RBAC 权限注册。 内容: · app/foms.py 入口,按序 load 全部模块 · app/global_func.py get_module_dbname(统一库 foms) · build.sh clone+安装全部模块、生成 DDL/CRUD、挂载 wwwroot · conf/config.json website.paths:foms 根路径 + 三模块前缀 · init/data.yaml 全部 codes(含拆分后新增的 codes) · scripts/load_path.py 重写为新 URL 布局 · wwwroot/index.ui 首页(指向各模块前缀路径) 从 foms 仓库迁出的应用层文件(app/build/conf/start/stop/index.ui/data.yaml/ init_rbac/load_path)在 foms 侧已删除。
47 lines
1.3 KiB
JSON
47 lines
1.3 KiB
JSON
{
|
|
"password_key": "foms_secret_key_change_me",
|
|
"logger": {
|
|
"name": "foms",
|
|
"level": "INFO",
|
|
"file": "$[workdir]$/logs/foms.log"
|
|
},
|
|
"filesroot": "$[workdir]$/files",
|
|
"databases": {
|
|
"foms": {
|
|
"driver": "aiomysql",
|
|
"kwargs": {
|
|
"host": "127.0.0.1",
|
|
"port": 3306,
|
|
"user": "root",
|
|
"password": "",
|
|
"db": "foms",
|
|
"charset": "utf8mb4",
|
|
"autocommit": true
|
|
}
|
|
}
|
|
},
|
|
"website": {
|
|
"paths": [
|
|
["$[workdir]$/wwwroot", ""],
|
|
["$[workdir]$/pkgs/foms/wwwroot", ""],
|
|
["$[workdir]$/pkgs/dbbackup/wwwroot", "/dbbackup"],
|
|
["$[workdir]$/pkgs/filesync/wwwroot", "/filesync"],
|
|
["$[workdir]$/pkgs/hostwatch/wwwroot", "/hostwatch"],
|
|
["$[workdir]$/bricks", "/bricks"]
|
|
],
|
|
"port": 9080,
|
|
"indexes": ["index.ui"],
|
|
"session_max_time": 86400,
|
|
"session_issue_time": 3600,
|
|
"processors": [
|
|
[".dspy", "dspy"],
|
|
[".ui", "bui"],
|
|
[".tmpl", "tmpl"],
|
|
[".js", "staticfile"],
|
|
[".css", "staticfile"],
|
|
[".png", "staticfile"],
|
|
[".svg", "staticfile"]
|
|
]
|
|
}
|
|
}
|