# ============================================
# Parse Service 配置
# ============================================

# 引入公共配置（标记为可选）
spring.config.import=optional:classpath:application-common.properties,optional:classpath:application-infra.properties

# 服务端口
server.port=8003

# 服务名称
spring.application.name=parse-service

# 文件上传配置
spring.servlet.multipart.enabled=true
spring.servlet.multipart.max-file-size=500MB
spring.servlet.multipart.max-request-size=500MB
spring.servlet.multipart.file-size-threshold=2KB

# MyBatis Plus配置（覆盖公共配置中的type-aliases-package）
mybatis-plus.type-aliases-package=com.lingyue.parse.entity

# 文件存储配置
file.storage.base-path=${FILE_STORAGE_BASE_PATH:/data/lingyue/files}
file.storage.text-path=${FILE_STORAGE_TEXT_PATH:/data/lingyue/texts}
file.storage.allowed-extensions=pdf,doc,docx,xls,xlsx,jpg,jpeg,png,gif

# AI服务配置
ai.service.url=${AI_SERVICE_URL:http://localhost:8007}
ai.service.timeout=300000

# PaddleOCR配置
paddleocr.server-url=${PADDLEOCR_SERVER_URL:http://localhost:8866}
paddleocr.timeout=30000

# 解析任务配置
parse.task.use-mq=${PARSE_TASK_USE_MQ:false}
parse.task.max-retries=${PARSE_TASK_MAX_RETRIES:3}
parse.task.retry-initial-delay=${PARSE_TASK_RETRY_INITIAL_DELAY:1000}

# 性能优化配置
performance.large-file-threshold=${LARGE_FILE_THRESHOLD:52428800}
performance.chunk-size=${FILE_CHUNK_SIZE:10485760}
