foms/conf/config.json

43 lines
1.1 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]$/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"]
]
}
}