smart-admin/smart-admin-api/sa-admin/src/main/resources/pre/application.yaml

51 lines
2.8 KiB
YAML
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.

#############################################################################################################
# #
# 为了减少重复配置本配置文件为此sa-admin的独有配置更多配置请查看 sa-base 项目中的 sa-base.yaml 通用配置文件。 #
# 其中此文件中配置可以覆盖 sa-base.yaml 中的通用配置具体实现类请看类YamlProcessor.java #
# #
#############################################################################################################
# 项目配置: 名称、日志目录
project:
name: sa-admin
log-directory: /home/logs/smart_admin_v3/${project.name}/${spring.profiles.active}
# 项目端口和url根路径
server:
port: 1024
servlet:
context-path: /
# 环境
spring:
profiles:
active: '@profiles.active@'
# swagger文档
swagger:
host: localhost:${server.port}
tag-class: net.lab1024.sa.admin.constant.AdminSwaggerTagConst
####################################### 安全等级保护 相关配置 ##################################################
# #
# 建议开启 "三级等保" 所要求的配置,具体如下: #
# 1连续登录失败 5 次锁定账户 30 分钟, #
# 2登录超时时长建议为 30分钟超过此时间没有访问系统会重新要求登录 #
# 3密码复杂度至少三种字符最小 8 位 #
# #
#############################################################################################################
classified-protect:
# 连续登录失败次数则锁定,-1表示不受限制可以一直尝试登录
login-max-fail-times: 5
# 连续登录失败锁定时间(单位:秒),-1表示不锁定建议锁定30分钟
login-fail-locked-seconds: 1800
# 密码复杂度开启(默认复杂度为:至少三种字符,最小 8 位), true 开启false 不开启,建议开启
password-complexity-enabled: true
sa-token:
# token 最低活跃频率(单位:秒),如果 token 超过此时间没有访问系统就会被冻结,默认-1 代表不限制,永不冻结
active-timeout: 1800
# token 有效期(单位:秒) 1天86400秒-1 代表永久有效
timeout: 86400