mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-24 05:26:58 +00:00
本次提交包含多项优化和清理工作: 1. 新增订单类型枚举BUY,调整定时任务状态显示逻辑 2. 优化Redis连接配置,重构认证逻辑减少重复代码 3. 移除大量初始化演示数据、过期的租户与角色配置 4. 简化调度器状态存储,不再写入配置表而是内存缓存 5. 修复插件开关状态存储逻辑,调整字典数据标签与值 6. 优化WebSocket聊天处理,完善错误处理流程 7. 清理冗余导入与废弃的操作日志过滤逻辑
47 lines
1.7 KiB
JSON
47 lines
1.7 KiB
JSON
[
|
|
{
|
|
"config_name": "演示模式启用",
|
|
"config_key": "demo_enable",
|
|
"config_value": "off",
|
|
"config_type": true,
|
|
"status": 0,
|
|
"description": "是否启用演示模式(启用后非白名单IP只允许GET请求)",
|
|
"tenant_id": 1
|
|
},
|
|
{
|
|
"config_name": "演示访问IP白名单",
|
|
"config_key": "ip_white_list",
|
|
"config_value": "[\"127.0.0.1\"]",
|
|
"config_type": true,
|
|
"status": 0,
|
|
"description": "演示模式下允许访问的IP列表",
|
|
"tenant_id": 1
|
|
},
|
|
{
|
|
"config_name": "接口白名单",
|
|
"config_key": "white_api_list_path",
|
|
"config_value": "[\"/api/v1/system/auth/login\", \"/api/v1/system/auth/token/refresh\", \"/api/v1/system/auth/captcha/get\", \"/api/v1/system/auth/logout\", \"/api/v1/system/config/info\", \"/api/v1/system/user/current/info\", \"/api/v1/system/notice/available\", \"/api/v1/system/auth/auto-login/users\", \"/api/v1/system/auth/auto-login/token\", \"/api/v1/system/auth/auto-login\", \"/common/health\", \"/common/health/ready\", \"/common/health/live\", \"/metrics\"]",
|
|
"config_type": true,
|
|
"status": 0,
|
|
"description": "无需登录即可访问的接口列表",
|
|
"tenant_id": 1
|
|
},
|
|
{
|
|
"config_name": "访问IP黑名单",
|
|
"config_key": "ip_black_list",
|
|
"config_value": "[]",
|
|
"config_type": true,
|
|
"status": 0,
|
|
"description": "禁止访问的IP列表(任意请求均拒绝)",
|
|
"tenant_id": 1
|
|
},
|
|
{
|
|
"config_name": "操作日志保留天数",
|
|
"config_key": "operation_log_retention_days",
|
|
"config_value": "90",
|
|
"config_type": true,
|
|
"status": 0,
|
|
"description": "操作日志保留天数,调度器定期清理过期日志",
|
|
"tenant_id": 1
|
|
}
|
|
] |