Files
happy-life-star/backend-single/src/main/resources/application-prod.yml
T

90 lines
2.1 KiB
YAML

# 生产环境配置
# Production Environment Configuration
server:
port: 19089
spring:
servlet:
multipart:
max-file-size: 10MB
max-request-size: 10MB
# 数据库配置 - 生产MySQL
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://101.200.208.45:3306/emotion_museum?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true
username: root
password: EmotionMuseum2025*#
hikari:
minimum-idle: 10
maximum-pool-size: 50
auto-commit: true
idle-timeout: 120000
pool-name: EmotionHikariCP-Prod
max-lifetime: 300000
keepalive-time: 60000
connection-timeout: 10000
validation-timeout: 5000
leak-detection-threshold: 60000
# Redis配置 - 生产Redis
redis:
host: 101.200.208.45
port: 6379
timeout: 5000ms
database: 0
password: EmotionMuseum2025*#
lettuce:
pool:
max-active: 20
max-wait: -1ms
max-idle: 10
min-idle: 5
time-between-eviction-runs: 30s
client-name: emotion-museum-client
# 日志配置 - 生产环境
logging:
level:
com.emotion: info
org.springframework.security: warn
root: warn
file:
name: /data/logs/emotion-museum/emotion-single.log
max-size: 200MB
max-history: 60
# 生产环境特定配置
emotion:
# 文件上传路径 - 生产环境
upload:
path: /data/uploads/emotion-museum
# Text-to-speech config
tts:
enabled: true
engine-url: http://127.0.0.1:19110
engine-connect-timeout-ms: 5000
engine-read-timeout-ms: 240000
output-dir: /data/uploads/emotion-museum/tts
public-url-prefix: /tts/audio
max-text-length: 5000
default-voice: default_zh_female
default-speech-rate: 0.92
default-pitch: 0
default-emotion: story
# Speech-to-text config
asr:
enabled: true
engine-url: http://127.0.0.1:19120
max-file-size: 10485760
allowed-types: wav,mp3,m4a,mp4,aac,amr
# 生产模式配置
prod:
performance-monitoring: true
security-enhanced: true
cache-enabled: true