You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
# 内置配置 不允许修改 如需修改请在 nacos 上写相同配置覆盖
|
|
|
|
|
# Sa-Token配置
|
|
|
|
|
sa-token:
|
|
|
|
|
# token有效期(单位:秒) 默认1天
|
|
|
|
|
timeout: 86400
|
|
|
|
|
# token最低活跃频率(单位:秒) 默认30分钟无操作则过期
|
|
|
|
|
active-timeout: 86400
|
|
|
|
|
# 允许动态设置 token 有效期
|
|
|
|
|
dynamic-active-timeout: true
|
|
|
|
|
# 允许从 请求参数 读取 token
|
|
|
|
|
is-read-body: true
|
|
|
|
|
# 允许从 header 读取 token
|
|
|
|
|
is-read-header: true
|
|
|
|
|
# 关闭 cookie 鉴权 从根源杜绝 csrf 漏洞风险
|
|
|
|
|
is-read-cookie: false
|
|
|
|
|
# token前缀
|
|
|
|
|
token-prefix: "Bearer"
|
|
|
|
|
# jwt签名密钥(Mixin模式必须配置)
|
|
|
|
|
jwt-secret-key: "xK9jL2mP3qR4sT5uV6wX7yZ8aB1cD2eF4gH4iJ5kL6mN7oP8qR9sT0uV1wX2yZ3aB4cD5eF6gH=="
|