diff --git a/app/__init__.py b/app/__init__.py new file mode 100644 index 0000000..fad2520 --- /dev/null +++ b/app/__init__.py @@ -0,0 +1,2 @@ +# -*- coding: utf-8 -*- +"""scense 应用包(标准 ahserver + rbac,不导出任何自造中间件)。""" diff --git a/conf/config.json b/conf/config.json index e3d2ecc..22c2e07 100644 --- a/conf/config.json +++ b/conf/config.json @@ -1,12 +1,4 @@ { - "http_semantics": { - "enabled": true, - "notfound": true, - "method_not_allowed": true, - "bad_request": true, - "entry": "app/scense.py", - "note": "404/405/400 语义中间件装配开关;由 app/scense.py 的 ahapp_built 钩子读取" - }, "app": "yuanjing", "app_cn": "唤景平台(世界模式)", "port": 9380, @@ -143,7 +135,9 @@ "leading": "/healthz", "registerfunction": "healthz" } - ] + ], + "session_max_time": 28800, + "session_reissue_time": 7200 }, "db_password_encoding": "aes-b64(appPublic.aes, key=password_key)", "db_password_source": "env/{env}.json db.password(运行时编码,明文不落盘)" diff --git a/wwwroot/i18n_getmsgs.dspy b/wwwroot/i18n_getmsgs.dspy new file mode 100644 index 0000000..c3f789f --- /dev/null +++ b/wwwroot/i18n_getmsgs.dspy @@ -0,0 +1 @@ +return json.dumps({"success": True, "msgs": {}}, ensure_ascii=False)