feat: 添加用户错误日志功能, 禁用Redis缓存, userId自动生成5位随机字符
This commit is contained in:
@@ -39,6 +39,25 @@ app.video.output.path=outputs
|
||||
jwt.secret=aigc-demo-secret-key-for-jwt-token-generation-2025
|
||||
jwt.expiration=86400000
|
||||
|
||||
# ============================================
|
||||
# Redis配置
|
||||
# ============================================
|
||||
# 是否启用Redis缓存(设置为false则禁用Redis,Token验证仅依赖JWT)
|
||||
redis.enabled=false
|
||||
spring.data.redis.host=localhost
|
||||
spring.data.redis.port=6379
|
||||
spring.data.redis.password=
|
||||
spring.data.redis.database=0
|
||||
# 连接池配置
|
||||
spring.data.redis.lettuce.pool.max-active=8
|
||||
spring.data.redis.lettuce.pool.max-idle=8
|
||||
spring.data.redis.lettuce.pool.min-idle=0
|
||||
spring.data.redis.lettuce.pool.max-wait=-1ms
|
||||
# Token在Redis中的过期时间(秒),与JWT过期时间一致
|
||||
redis.token.expire-seconds=86400
|
||||
# 禁用Redis自动配置(当redis.enabled=false时生效)
|
||||
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration,org.springframework.boot.autoconfigure.data.redis.RedisRepositoriesAutoConfiguration
|
||||
|
||||
# AI API配置
|
||||
ai.api.base-url=http://116.62.4.26:8081
|
||||
ai.api.key=ak_5f13ec469e6047d5b8155c3cc91350e2
|
||||
|
||||
Reference in New Issue
Block a user