Files
lanecarford_back/src/main/resources/application-prod.yml

90 lines
2.0 KiB
YAML
Raw Normal View History

# Spring Boot 应用配置
2025-10-28 15:49:59 +08:00
# 服务器配置
server:
2025-10-30 11:32:55 +08:00
port: 8080
spring:
# 应用基本信息
application:
name: lanecarford-ai-styling-assistant
# 数据源配置 - MySQL
datasource:
2025-10-28 15:49:59 +08:00
url: jdbc:mysql://18.167.251.121:33008/lanecrawford?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
username: aida_con
password: 123456
driver-class-name: com.mysql.cj.jdbc.Driver
# HikariCP 连接池配置
hikari:
maximum-pool-size: 20
minimum-idle: 5
idle-timeout: 300000
max-lifetime: 1200000
connection-timeout: 20000
data:
redis:
host: 172.31.11.32
2025-10-28 17:44:56 +08:00
# host: 18.167.251.121
port: 6379
database: 3
password: Aidlab
lettuce:
pool:
max-active: 8
max-idle: 8
min-idle: 0
max-wait: 5
security:
2025-10-28 15:49:59 +08:00
jwtSecret: TXacaath8k63fQMAkfuRk3s5GTZyjRpS
jwtTokenHeader: Authorization
jwtTokenPrefix: Bearer-
jwtExpiration: 604800000
# MyBatis-Plus 配置
mybatis-plus:
configuration:
map-underscore-to-camel-case: true
2025-10-28 15:49:59 +08:00
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
global-config:
db-config:
logic-delete-field: deleted
logic-delete-value: 1
logic-not-delete-value: 0
mapper-locations: classpath*:/mapper/**/*.xml
# Swagger 文档配置
springdoc:
api-docs:
path: /api-docs
swagger-ui:
path: /swagger-ui.html
enabled: true
# 日志配置
logging:
level:
com.aida.lanecarford: DEBUG
2025-10-28 15:49:59 +08:00
# MinIO 对象存储配置
minio:
endpoint: https://www.minio-api.aida.com.hk
access-key: admin
secret-key: Aidlab123123!
bucket-name: lanecarford
# 文件访问URL前缀
url-prefix: ${minio.endpoint}/${minio.bucket-name}/
2025-10-30 11:39:37 +08:00
# 换脸API配置
faceswap:
api:
base-url: http://18.167.251.121:10004
reface-endpoint: /api/v1/reface
2025-10-28 17:44:56 +08:00
tencent:
secret-id: AKID52lRwDIBsLaZLtDI9m9LJMAj36wYw50i
secret-key: XqujLlywhHfrqcCYfYVHtNgmeIiwxkKf
2025-10-28 15:49:59 +08:00
sender: info@aida.com.hk
webhook:
domain: http://18.167.251.121:10095