Files
server/src/main/resources/application-prod.yml
2025-11-22 20:05:53 +08:00

135 lines
4.5 KiB
YAML
Raw Permalink 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.
# 生产环境配置
---
server:
port: ${SERVER_PORT:9081}
servlet:
context-path: ${SERVER_CONTEXT_PATH:/point-strategy}
tomcat:
uriEncoding: UTF-8
max-threads: ${TOMCAT_MAX_THREADS:1000}
max-connections: ${TOMCAT_MAX_CONNECTIONS:20000}
spring:
# 生产环境数据源配置
datasource:
driverClassName: ${DB_DRIVER:com.mysql.cj.jdbc.Driver}
url: jdbc:mysql://${DB_HOST:mysql}:${DB_PORT:3306}/${DB_NAME:enterprise_digital_archives}?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
username: ${DB_USERNAME:root}
password: ${DB_PASSWORD:Abc@123456}
# 生产环境Redis配置
redis:
database: ${REDIS_DATABASE:2}
host: ${REDIS_HOST:127.0.0.1}
port: ${REDIS_PORT:6379}
password: ${REDIS_PASSWORD:prod_redis_password}
pool:
max-active: ${REDIS_MAX_ACTIVE:200}
max-wait: ${REDIS_MAX_WAIT:-1}
max-idle: ${REDIS_MAX_IDLE:10}
min-idle: ${REDIS_MIN_IDLE:0}
timeout: ${REDIS_TIMEOUT:50000}
# 文件上传配置
servlet:
multipart:
max-file-size: ${MAX_FILE_SIZE:-1}
max-request-size: ${MAX_REQUEST_SIZE:-1}
# Elasticsearch配置
elasticsearch:
rest:
uris: ${ELASTICSEARCH_SCHEME:http}://${ELASTICSEARCH_HOST:127.0.0.1}:${ELASTICSEARCH_PORT:9200}
# MyBatis配置
mybatis:
mapper-locations: classpath:mapper/*.xml
type-aliases-package: com.point.strategy.fond.bean,com.point.strategy.docSimpleArrange.bean,com.point.strategy.docTraditionArrange.docFile.bean,com.point.strategy.docTraditionArrange.docVolume.bean,com.point.strategy.bean
configuration:
map-underscore-to-camel-case: true
call-setters-on-nulls: true
# 生产环境日志配置
logging:
level:
org.springframework.boot.autoconfigure: ${LOG_ROOT_LEVEL:warn}
com.point.strategy: ${LOG_APP_LEVEL:info}
config: classpath:logback-spring.xml
# Swagger配置
swagger:
show: ${SWAGGER_SHOW:false}
# 档案XML生成配置
archiveXML:
generate: ${ARCHIVE_XML_GENERATE:false}
# 生产环境文件路径配置Docker环境安全路径
# 注意:所有路径都不应该以斜杠结尾,避免路径拼接时出现双斜杠问题
upload:
path: ${UPLOAD_PATH:/app/data/upload}
temp:
path: ${TEMP_PATH:/app/data/temp}
unzip:
path: ${UNZIP_PATH:/app/data/unzip}
img:
upload: ${IMG_UPLOAD_PATH:/app/data/images} # 注意:不以斜杠结尾
report:
path: ${REPORT_PATH:/app/data/reports} # 注意:不以斜杠结尾
# 网络上传文件临时路径配置Docker环境安全路径
net:
upload:
# Windows环境路径
win:
filePath: ${NET_UPLOAD_WIN_FILEPATH:"D:\\fileAll\\"}
targetPath: ${NET_UPLOAD_WIN_TARGETPATH:"D:\\testFile"}
# Linux环境路径
linux:
filePath: ${NET_UPLOAD_LINUX_FILEPATH:"/app/data/fileAll/"}
targetPath: ${NET_UPLOAD_LINUX_TARGETPATH:"/app/data/testFile"}
upload-two:
# Windows环境路径
win:
filePath: ${NET_UPLOAD_TWO_WIN_FILEPATH:"D:\\fileAllTwo\\"}
targetPath: ${NET_UPLOAD_TWO_WIN_TARGETPATH:"D:\\testFileTwo"}
# Linux环境路径
linux:
filePath: ${NET_UPLOAD_TWO_LINUX_FILEPATH:"/app/data/fileAllTwo/"}
targetPath: ${NET_UPLOAD_TWO_LINUX_TARGETPATH:"/app/data/testFileTwo"}
jzt:
# Windows环境路径
win:
filePath: ${NET_JZT_WIN_FILEPATH:"D:\\fileAll\\"}
targetPath: ${NET_JZT_WIN_TARGETPATH:"D:\\testFile"}
# Linux环境路径
linux:
filePath: ${NET_JZT_LINUX_FILEPATH:"/app/data/fileAll/"}
targetPath: ${NET_JZT_LINUX_TARGETPATH:"/app/data/testFile"}
# 友虹OCR配置
youhong:
integrate: ${YOUHONG_INTEGRATE:true}
baseUrl: ${YOUHONG_BASE_URL:http://prod-ocr-server:9000/v1/}
# 湿度监控IP
humidityIp: ${HUMIDITY_IP:10.19.16.64:1433}
# 上架IP
shelvingIp: ${SHELVING_IP:10.19.16.64:1236}
# 移车系统集成配置
ycj:
driverClassName: ${YCJ_DRIVER:com.mysql.jdbc.Driver}
url: jdbc:mysql://${YCJ_HOST:prod-mysql-server}:${YCJ_PORT:3306}/${YCJ_DB_NAME:dagl}?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8
username: ${YCJ_USERNAME:prod_user}
password: ${YCJ_PASSWORD:prod_password}
# 温湿度监控API配置
temperature:
getAllWareHouseList: ${TEMP_API_BASE_URL:http://192.168.0.126:8080}/api/getAllWareHouseList
getAirRealTimeAnd24HDataByWareHouseId: ${TEMP_API_BASE_URL:http://192.168.0.126:8080}/api/getAirRealTimeAnd24HDataByWareHouseId
# OCR配置Docker环境中Tesseract安装路径
ocr:
tessPath: ${TESS_PATH:/usr/bin/tesseract}