@@ -43,7 +43,7 @@ openapi JSON 数据在线地址
4343
4444## 数据库配置
4545
46- ### ` DATABASE_TYPE ` <Badge type =" info " text =" Literal['postgresql ', 'mysql '] " /> <Badge type =" warning " text =" env " />
46+ ### ` DATABASE_TYPE ` <Badge type =" info " text =" Literal['mysql ', 'postgresql '] " /> <Badge type =" warning " text =" env " />
4747
4848数据库类型,仅支持 ` postgresql ` 和 ` mysql ` ,需注意第三方插件兼容性
4949
@@ -79,7 +79,7 @@ openapi JSON 数据在线地址
7979
8080数据库字符集,仅用于 mysql
8181
82- ### ` DATABASE_PK_MODE ` <Badge type =" info " text =" str " />
82+ ### ` DATABASE_PK_MODE ` <Badge type =" info " text =" Literal['autoincrement', 'snowflake'] " />
8383
8484数据库主键模式,更多详情:[ 切换主键] ( ./pk.md )
8585
@@ -89,26 +89,64 @@ openapi JSON 数据在线地址
8989
9090## Redis 配置
9191
92- ### ` REDIS_TIMEOUT ` <Badge type =" info " text =" int " /> <Badge type =" warning " text =" env " />
93-
94- Socket 读写操作的超时时间和 Redis 建立 TCP 连接时的超时时间
95-
96- ### ` REDIS_HOST ` <Badge type =" info " text =" int " />
92+ ### ` REDIS_HOST ` <Badge type =" info " text =" str " /> <Badge type =" warning " text =" env " />
9793
9894Redis 服务器的主机地址
9995
100- ### ` REDIS_PORT ` <Badge type =" info " text =" str " />
96+ ### ` REDIS_PORT ` <Badge type =" info " text =" int " /> < Badge type = " warning " text = " env " />
10197
10298Redis 服务器的端口号
10399
104- ### ` REDIS_PASSWORD ` <Badge type =" info " text =" int " />
100+ ### ` REDIS_PASSWORD ` <Badge type =" info " text =" str " /> < Badge type = " warning " text = " env " />
105101
106102Redis 认证密码
107103
108- ### ` REDIS_DATABASE ` <Badge type =" info " text =" str " />
104+ ### ` REDIS_DATABASE ` <Badge type =" info " text =" int " /> < Badge type = " warning " text = " env " />
109105
110106全局默认使用的 Redis 逻辑数据库索引(0 - 15)
111107
108+ ### ` REDIS_TIMEOUT ` <Badge type =" info " text =" int " />
109+
110+ Socket 读写操作的超时时间和 Redis 建立 TCP 连接时的超时时间
111+
112+ ## 缓存配置
113+
114+ ### ` CACHE_LOCAL_ENABLED ` <Badge type =" info " text =" bool " />
115+
116+ 是否启用本地缓存
117+
118+ ### ` CACHE_LOCAL_MAXSIZE ` <Badge type =" info " text =" int " />
119+
120+ 本地缓存最大容量
121+
122+ ### ` CACHE_LOCAL_TTL ` <Badge type =" info " text =" int " />
123+
124+ 本地缓存过期时长(秒)
125+
126+ ### ` CACHE_REDIS_TTL ` <Badge type =" info " text =" int " />
127+
128+ Redis 缓存过期时长(秒)
129+
130+ ### ` CACHE_CONFIG_REDIS_PREFIX ` <Badge type =" info " text =" str " />
131+
132+ 系统配置缓存存储到 Redis 时的前缀
133+
134+ ### ` CACHE_DICT_REDIS_PREFIX ` <Badge type =" info " text =" str " />
135+
136+ 字典缓存存储到 Redis 时的前缀
137+
138+ ### ` CACHE_PUBSUB_CHANNEL ` <Badge type =" info " text =" str " />
139+
140+ 缓存失效发布订阅频道
141+
142+ ### ` CACHE_PUBSUB_RECONNECT_DELAY ` <Badge type =" info " text =" int " />
143+
144+ 缓存发布订阅重连延迟(秒)
145+
146+ ### ` CACHE_PUBSUB_MAX_RECONNECT_ATTEMPTS ` <Badge type =" info " text =" int " />
147+
148+ 缓存发布订阅最大重连次数
149+
112150## Snowflake(雪花算法)
113151
114152### ` SNOWFLAKE_DATACENTER_ID ` <Badge type =" info " text =" int " /> <Badge type =" warning " text =" env " />
@@ -234,6 +272,10 @@ JWT / RBAC 路由白名单正则模式,从路由头部开始匹配,与之匹
234272
235273## 登录配置
236274
275+ ### ` LOGIN_CAPTCHA_ENABLED ` <Badge type =" info " text =" bool " />
276+
277+ 是否开启登录验证码
278+
237279### ` LOGIN_CAPTCHA_REDIS_PREFIX ` <Badge type =" info " text =" str " />
238280
239281登录验证码存储到 Redis 时的前缀
@@ -242,10 +284,6 @@ JWT / RBAC 路由白名单正则模式,从路由头部开始匹配,与之匹
242284
243285登录验证码过期时长(秒)
244286
245- ### ` LOGIN_CAPTCHA_ENABLED ` <Badge type =" info " text =" bool " />
246-
247- 是否开始登录验证码
248-
249287### ` LOGIN_FAILURE_PREFIX ` <Badge type =" info " text =" str " />
250288
251289登录失败存储到 Redis 时的前缀
@@ -280,10 +318,26 @@ JWT 中间件存储用户信息到 Redis 时的前缀
280318
281319## 数据权限配置
282320
321+ ### ` DATA_PERMISSION_MODEL_EXCLUDE ` <Badge type =" info " text =" list[str] " />
322+
323+ 排除允许进行数据过滤的 SQLA 模型
324+
283325### ` DATA_PERMISSION_COLUMN_EXCLUDE ` <Badge type =" info " text =" list[str] " />
284326
285327排除允许进行数据过滤的 SQLA 模型列,例如 id, password 等
286328
329+ ### ` DATA_PERMISSION_MODEL_TEMPLATE_VARIABLES ` <Badge type =" info " text =" list[dict[str, str]] " />
330+
331+ 数据规则模型可用模板变量
332+
333+ ### ` DATA_PERMISSION_COLUMN_TEMPLATE_VARIABLES ` <Badge type =" info " text =" list[dict[str, str]] " />
334+
335+ 数据规则字段可用模板变量
336+
337+ ### ` DATA_PERMISSION_TEMPLATE_VARIABLES ` <Badge type =" info " text =" list[dict[str, str]] " />
338+
339+ 数据规则值可用模板变量
340+
287341## Socket.IO 配置
288342
289343### ` WS_NO_AUTH_MARKER ` <Badge type =" info " text =" str " />
@@ -426,9 +480,13 @@ JWT 中间件存储用户信息到 Redis 时的前缀
426480
427481操作日志路径排除,在此配置内的请求地址不会记录操作日志
428482
429- ### ` OPERA_LOG_ENCRYPT_KEY_INCLUDE ` <Badge type =" info " text =" list[str] " />
483+ ### ` OPERA_LOG_REDACT_KEYS ` <Badge type =" info " text =" list[str] " />
484+
485+ 脱敏操作日志中的接口请求参数
430486
431- 加密操作日志中的接口请求参数
487+ ### ` OPERA_LOG_QUEUE_MAXSIZE ` <Badge type =" info " text =" int " />
488+
489+ 操作日志队列最大容量
432490
433491### ` OPERA_LOG_QUEUE_BATCH_CONSUME_SIZE ` <Badge type =" info " text =" int " />
434492
@@ -464,18 +522,14 @@ pip 下载最大重试次数
464522
465523## Grafana 配置
466524
467- ### ` GRAFANA_METRICS ` <Badge type =" info " text =" bool " />
525+ ### ` GRAFANA_METRICS_ENABLE ` <Badge type =" info " text =" bool " />
468526
469527是否启用 Grafana 套件
470528
471529::: warning
472530如果不需要可观测性集成,不建议启用此功能
473531:::
474532
475- ### ` GRAFANA_APP_NAME ` <Badge type =" info " text =" str " />
476-
477- Grafana 应用名称,通常情况下,不建议修改
478-
479533### ` GRAFANA_OTLP_GRPC_ENDPOINT ` <Badge type =" info " text =" str " />
480534
481535Grafana OTLP 协议 grpc 地址,用于发送遥测数据
@@ -542,19 +596,11 @@ Google 客户端 ID
542596
543597Google 客户端密钥
544598
545- ### ` OAUTH2_LINUX_DO_CLIENT_ID ` <Badge type =" info " text =" str " /> <Badge type =" warning " text =" env " />
546-
547- Linux Do 客户端 ID
548-
549- ### ` OAUTH2_LINUX_DO_CLIENT_SECRET ` <Badge type =" info " text =" str " /> <Badge type =" warning " text =" env " />
550-
551- Linux Do 客户端密钥
552-
553599### ` OAUTH2_STATE_REDIS_PREFIX ` <Badge type =" info " text =" str " />
554600
555601OAuth2 状态信息存储到 Redis 时的前缀
556602
557- ### ` OAUTH2_STATE_EXPIRE_SECONDS ` <Badge type =" info " text =" str " />
603+ ### ` OAUTH2_STATE_EXPIRE_SECONDS ` <Badge type =" info " text =" int " />
558604
559605OAuth2 状态信息存储到 Redis 时的过期时间(秒)
560606
@@ -566,10 +612,6 @@ GitHub 重定向地址,必须与 GitHub OAuth Apps 配置保持一致
566612
567613Google 重定向地址,必须与 Google OAuth 2.0 客户端配置保持一致
568614
569- ### ` OAUTH2_LINUX_DO_REDIRECT_URI ` <Badge type =" info " text =" str " />
570-
571- Linux Do 重定向地址,必须与 Linux Do Connect 配置保持一致
572-
573615### ` OAUTH2_FRONTEND_LOGIN_REDIRECT_URI ` <Badge type =" info " text =" str " />
574616
575617登陆成功后,重定向到前端的地址
@@ -580,11 +622,11 @@ Linux Do 重定向地址,必须与 Linux Do Connect 配置保持一致
580622
581623## 插件:Email
582624
583- ### ` EMAIL_USERNAME ` <Badge type =" info " text =" str " />
625+ ### ` EMAIL_USERNAME ` <Badge type =" info " text =" str " /> < Badge type = " warning " text = " env " />
584626
585627电子邮箱发件用户
586628
587- ### ` EMAIL_PASSWORD ` <Badge type =" info " text =" str " />
629+ ### ` EMAIL_PASSWORD ` <Badge type =" info " text =" str " /> < Badge type = " warning " text = " env " />
588630
589631电子邮箱发件用户密码
590632
@@ -606,4 +648,4 @@ Linux Do 重定向地址,必须与 Linux Do Connect 配置保持一致
606648
607649### ` EMAIL_CAPTCHA_EXPIRE_SECONDS ` <Badge type =" info " text =" int " />
608650
609- 电子邮件验证码缓存时长(秒)
651+ 电子邮件验证码缓存时长(秒)
0 commit comments