pbls/conf/config.json

70 lines
1.7 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"appname": "pbls",
"port": 9300,
"port_source": "projects/pbls/env/test.json:port端口唯一来源应用不设 env/ 目录)",
"default_dbname": "pbl",
"default_tenant": "default",
"module_dbmap": {
"*": "pbl",
"pbl_common": "pbl",
"pbl_appcodes": "pbl",
"pbl_blueprint": "pbl",
"pbl_validation": "pbl",
"pbl_compiler": "pbl",
"pbl_agent_runtime": "pbl",
"pbl_evidence": "pbl",
"pbl_assessment": "pbl",
"pbl_kdb_ext": "pbl",
"pbl_domain_ext": "pbl",
"pbl_scense_ext": "pbl",
"pbl_runtime_ext": "pbl",
"world": "pbl",
"scene": "pbl",
"entity": "pbl",
"script_engine": "pbl",
"scense_game": "pbl",
"appbase": "pbl",
"rbac": "pbl"
},
"password_key": "pbls-aes-key-0123456789abcdef",
"logger": {
"name": "pbls",
"level": "INFO",
"file": "$[workdir]$/logs/pbls.log"
},
"filesroot": "$[workdir]$/files",
"databases": {
"pbl": {
"driver": "mysql",
"kwargs": {
"host": "127.0.0.1",
"port": 3306,
"unix_socket": null,
"user": "test",
"password": "test123",
"db": "pbl",
"charset": "utf8mb4"
},
"note": "本机 MySQL 走 socket 会失败(/run/mysqld/mysqld.sock 不存在),必须显式 TCP 127.0.0.1:3306 且 unix_socket=null"
}
},
"website": {
"port": 9300,
"root": "$[workdir]$/wwwroot",
"indexes": ["index.ui", "index.html"],
"processors": [
[".tmpl", "tmpl"],
[".ui", "bui"],
[".dspy", "dspy"],
[".wss", "ws"],
[".ws", "ws"]
],
"session": {
"secret": "pbls-session-secret-please-rotate",
"cookie_name": "pbls_session",
"max_age": 86400
},
"rbac": true
}
}