Files
AIGC/demo/src/main/resources/application.properties
2026-01-06 14:33:01 +08:00

124 lines
4.9 KiB
Properties
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.

spring.application.name=demo
spring.messages.basename=messages
spring.thymeleaf.cache=false
spring.profiles.active=prod
# 服务器配置
server.address=0.0.0.0
server.port=8080
# 文件上传配置扩大请求体大小以支持大图片Base64编码
spring.servlet.multipart.max-file-size=500MB
spring.servlet.multipart.max-request-size=600MB
spring.servlet.multipart.enabled=true
# Tomcat 最大POST大小
server.tomcat.max-http-post-size=600MB
# JPA配置 - 禁用open-in-view避免视图层执行SQL查询
spring.jpa.open-in-view=false
# JPA自动更新表结构
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=false
# HikariCP连接池配置
# 连接泄漏检测阈值毫秒设置为0禁用检测避免长时间任务触发误报
spring.datasource.hikari.leak-detection-threshold=0
# 最大连接池大小
spring.datasource.hikari.maximum-pool-size=20
# 最小空闲连接数
spring.datasource.hikari.minimum-idle=5
# 连接超时(毫秒)
spring.datasource.hikari.connection-timeout=30000
# 空闲连接超时(毫秒)
spring.datasource.hikari.idle-timeout=600000
# 连接最大存活时间(毫秒)
spring.datasource.hikari.max-lifetime=1800000
# 应用配置
app.upload.path=uploads
app.video.output.path=outputs
# JWT配置
jwt.secret=mySecretKey123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
jwt.expiration=2592000000
# ============================================
# Redis配置
# ============================================
# 是否启用Redis缓存设置为false则禁用RedisToken验证仅依赖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=sk-J9A9c7rr7Y2suarAudmLG1J722ozIIHOweIhsI8QXX68sjMW
# SpringDoc OpenAPI (Swagger) 配置
springdoc.api-docs.path=/v3/api-docs
springdoc.swagger-ui.path=/swagger-ui.html
springdoc.swagger-ui.operationsSorter=method
springdoc.swagger-ui.tagsSorter=alpha
springdoc.swagger-ui.tryItOutEnabled=true
springdoc.swagger-ui.filter=true
springdoc.swagger-ui.display-request-duration=true
springdoc.swagger-ui.doc-expansion=none
springdoc.swagger-ui.default-models-expand-depth=1
springdoc.swagger-ui.default-model-expand-depth=1
# 腾讯云COS对象存储配置
# 是否启用COS设置为true后需要配置下面的参数
tencent.cos.enabled=true
# 腾讯云SecretId从控制台获取https://console.cloud.tencent.com/cam/capi
tencent.cos.secret-id=AKID2xjaRPSOSYk2fIxV7nQuDi9NOIzTjlbJ
# 腾讯云SecretKey
tencent.cos.secret-key=Xrxywju0wfAf3QiqlT2ZvGYgeS6WjnjT
# COS区域例如ap-guangzhou、ap-shanghai、ap-beijing等
tencent.cos.region=ap-nanjing
# COS存储桶名称例如my-bucket-1234567890
tencent.cos.bucket-name=test-1323844400
# COS文件夹前缀所有文件存储在此目录下
tencent.cos.prefix=test-sx
# ============================================
# PayPal支付配置
# ============================================
# 注意请将实际的PayPal凭证配置到 application-dev.properties 中
# 该文件已在.gitignore中不会被提交到版本控制
# PayPal Client ID请在application-dev.properties中配置
paypal.client-id=
# PayPal Client Secret请在application-dev.properties中配置
paypal.client-secret=
# PayPal模式sandbox(测试环境) 或 live(生产环境)
paypal.mode=sandbox
# 支付成功回调URL
paypal.success-url=https://vionow.com/api/payment/paypal/success
# 支付取消回调URL
paypal.cancel-url=https://vionow.com/api/payment/paypal/cancel
# ============================================
# GZIP 压缩配置(提升传输性能)
# ============================================
server.compression.enabled=true
server.compression.mime-types=text/html,text/xml,text/plain,text/css,text/javascript,application/javascript,application/json,application/xml
server.compression.min-response-size=1024
# ============================================
# 日志配置
# ============================================
# 关闭 Spring Security DEBUG 日志
logging.level.org.springframework.security=INFO
# 减少 Tomcat HTTP 解析错误日志(扫描器/HTTPS误连等导致的
logging.level.org.apache.coyote.http11.Http11Processor=ERROR
logging.level.org.apache.coyote.AbstractProtocol=ERROR