|
|
@@ -0,0 +1,78 @@
|
|
|
+# ==================== 服务器配置 ====================
|
|
|
+server.port=${SERVER_PORT:8001}
|
|
|
+server.address=${SERVER_ADDRESS:127.0.0.1}
|
|
|
+server.servlet.multipart.max-file-size=${SERVER_MULTIPART_MAX_FILE_SIZE:100MB}
|
|
|
+server.servlet.multipart.max-request-size=${SERVER_MULTIPART_MAX_REQUEST_SIZE:100MB}
|
|
|
+server.tomcat.threads.max=${SERVER_TOMCAT_THREADS_MAX:200}
|
|
|
+server.tomcat.threads.min-spare=${SERVER_TOMCAT_THREADS_MIN_SPARE:10}
|
|
|
+
|
|
|
+# ==================== 应用基本信息 ====================
|
|
|
+spring.application.name=lingyue-zhibao
|
|
|
+spring.cloud.nacos.discovery.enabled=false
|
|
|
+spring.cloud.nacos.config.enabled=false
|
|
|
+spring.cloud.nacos.config.import-check.enabled=false
|
|
|
+
|
|
|
+# ==================== 数据库配置 (PostgreSQL) ====================
|
|
|
+spring.datasource.url=jdbc:postgresql://${DB_HOST:127.0.0.1}:${DB_PORT:5432}/${DB_NAME:lingyue_zhibao}
|
|
|
+spring.datasource.username=${DB_USERNAME:postgres}
|
|
|
+spring.datasource.password=${DB_PASSWORD:postgres}
|
|
|
+spring.datasource.driver-class-name=org.postgresql.Driver
|
|
|
+spring.datasource.hikari.minimum-idle=${DB_POOL_MIN_IDLE:5}
|
|
|
+spring.datasource.hikari.maximum-pool-size=${DB_POOL_MAX_SIZE:20}
|
|
|
+spring.datasource.hikari.idle-timeout=${DB_POOL_IDLE_TIMEOUT:30000}
|
|
|
+spring.datasource.hikari.max-lifetime=${DB_POOL_MAX_LIFETIME:1800000}
|
|
|
+spring.datasource.hikari.connection-timeout=${DB_POOL_CONNECTION_TIMEOUT:30000}
|
|
|
+
|
|
|
+# ==================== Redis缓存配置 ====================
|
|
|
+spring.data.redis.host=${REDIS_HOST:127.0.0.1}
|
|
|
+spring.data.redis.port=${REDIS_PORT:6379}
|
|
|
+spring.data.redis.password=${REDIS_PASSWORD:123123}
|
|
|
+spring.data.redis.database=${REDIS_DATABASE:0}
|
|
|
+spring.data.redis.timeout=${REDIS_TIMEOUT:10s}
|
|
|
+spring.data.redis.lettuce.pool.min-idle=${REDIS_POOL_MIN_IDLE:0}
|
|
|
+spring.data.redis.lettuce.pool.max-idle=${REDIS_POOL_MAX_IDLE:8}
|
|
|
+spring.data.redis.lettuce.pool.max-active=${REDIS_POOL_MAX_ACTIVE:8}
|
|
|
+spring.data.redis.lettuce.pool.max-wait=${REDIS_POOL_MAX_WAIT:-1ms}
|
|
|
+
|
|
|
+# ==================== MyBatis Plus ====================
|
|
|
+mybatis-plus.mapper-locations=classpath*:/mapper/**/*.xml
|
|
|
+mybatis-plus.configuration.map-underscore-to-camel-case=true
|
|
|
+mybatis-plus.configuration.log-impl=org.apache.ibatis.logging.slf4j.Slf4jImpl
|
|
|
+mybatis-plus.global-config.db-config.id-type=auto
|
|
|
+mybatis-plus.global-config.db-config.logic-delete-field=deleted
|
|
|
+mybatis-plus.global-config.db-config.logic-delete-value=1
|
|
|
+mybatis-plus.global-config.db-config.logic-not-delete-value=0
|
|
|
+
|
|
|
+# ==================== JWT配置 ====================
|
|
|
+jwt.secret=${JWT_SECRET:lingyue-zhibao-jwt-secret-key-must-be-at-least-32-characters}
|
|
|
+jwt.access-token-expire=${JWT_ACCESS_TOKEN_EXPIRE:86400}
|
|
|
+jwt.refresh-token-expire=${JWT_REFRESH_TOKEN_EXPIRE:604800}
|
|
|
+
|
|
|
+# ==================== 文件存储配置 ====================
|
|
|
+file.storage.type=${FILE_STORAGE_TYPE:local}
|
|
|
+file.storage.local.base-path=${FILE_LOCAL_PATH:/data/lingyue/files}
|
|
|
+
|
|
|
+# ==================== 异步任务配置 ====================
|
|
|
+task.async.core-pool-size=${TASK_CORE_POOL_SIZE:5}
|
|
|
+task.async.max-pool-size=${TASK_MAX_POOL_SIZE:20}
|
|
|
+task.async.queue-capacity=${TASK_QUEUE_CAPACITY:100}
|
|
|
+
|
|
|
+# ==================== AI / NER 配置 ====================
|
|
|
+ai.ner.service-url=${NER_SERVICE_URL:http://127.0.0.1:8002}
|
|
|
+ai.ner.timeout=${NER_TIMEOUT:30000}
|
|
|
+ai.llm.api-url=${LLM_API_URL:https://api.deepseek.com/v1}
|
|
|
+ai.llm.api-key=${LLM_API_KEY:}
|
|
|
+ai.llm.model=${LLM_MODEL:deepseek-chat}
|
|
|
+ai.llm.max-tokens=${LLM_MAX_TOKENS:4096}
|
|
|
+ai.llm.temperature=${LLM_TEMPERATURE:0.7}
|
|
|
+
|
|
|
+# ==================== Knife4j API文档 ====================
|
|
|
+knife4j.enable=true
|
|
|
+knife4j.setting.language=zh_cn
|
|
|
+
|
|
|
+# ==================== 日志配置 ====================
|
|
|
+logging.level.com.lingyue=${LOG_LEVEL_APP:debug}
|
|
|
+logging.level.org.springframework=${LOG_LEVEL_SPRING:warn}
|
|
|
+
|
|
|
+# ==================== Actuator ====================
|
|
|
+management.endpoints.web.exposure.include=mappings,beans
|