Files
Environment-Monitoring-System/ems-backend/target/classes/application.properties
2026-01-29 04:12:49 +08:00

74 lines
3.1 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=ems-backend
# ===================================================================
# 移除数据库相关配置使用JSON文件存储
# ===================================================================
file.upload-dir=./uploads
# A secure key for signing JWT tokens.
# This should be a long, random, Base64-encoded string.
# For production, this should be stored securely (e.g., as an environment variable).
token.signing.key=${TOKEN_SIGNING_KEY:dev-change-me}
# ===================================================================
# c. Volcano Engine AI Service Configuration
# ===================================================================
volcano.api.url=https://ark.cn-beijing.volces.com/api/v3/chat/completions
volcano.api.key=${VOLCANO_API_KEY:}
volcano.model.name=deepseek-v3-250324
# ===================================================================
# d. Spring AOP Configuration
# ===================================================================
# Force the use of CGLIB proxies for AOP
spring.aop.proxy-target-class=true
# ===================================================================
# e. Application Base URL
# ===================================================================
# This URL is used to construct absolute URLs for resources like uploaded files.
# It should be the public-facing base URL of the application.
app.base.url=${APP_BASE_URL:http://localhost:5173}
# ===================================================================
# Mail Configuration for 163 SMTP
# ===================================================================
spring.mail.host=smtp.163.com
spring.mail.port=465
spring.mail.username=${SPRING_MAIL_USERNAME:}
spring.mail.password=${SPRING_MAIL_PASSWORD:}
spring.mail.properties.mail.smtp.auth=true
spring.mail.properties.mail.smtp.ssl.enable=true
spring.mail.properties.mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory
spring.mail.properties.mail.smtp.socketFactory.fallback=false
spring.mail.properties.mail.smtp.socketFactory.port=465
spring.mail.properties.mail.transport.protocol=smtp
spring.mail.properties.mail.debug=true
# ===================================================================
# Server Configuration
# ===================================================================
server.port=8080
# ===================================================================
# Logging Configuration
# ===================================================================
logging.level.root=INFO
logging.level.com.dne.ems=DEBUG
logging.level.org.springframework.web=INFO
logging.level.org.hibernate=WARN
# ===================================================================
# JWT Configuration
# ===================================================================
jwt.secret=${JWT_SECRET:dev-change-me}
jwt.expiration=86400000
# ===================================================================
# Spring Task Configuration
# ===================================================================
spring.task.execution.pool.core-size=5
spring.task.execution.pool.max-size=10
spring.task.execution.pool.queue-capacity=25
spring.task.execution.thread-name-prefix=ems-async-