This commit is contained in:
2025-11-01 14:23:30 +08:00
parent 5beb48e11c
commit a1e2bea798
11 changed files with 844 additions and 47 deletions

View File

@@ -0,0 +1,99 @@
# 生产环境配置
---
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.kingbase8.Driver}
url: jdbc:kingbase8://${DB_HOST:172.16.130.12}:${DB_PORT:54321}/${DB_NAME:enterprise_digital_archives}
username: ${DB_USERNAME:system}
password: ${DB_PASSWORD:12345678ab}
# 生产环境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}
# 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}
# 友虹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}