Files
baiyue-firstleg/integration-service/src/main/resources/application.yml
T

82 lines
3.0 KiB
YAML
Raw Normal View History

2026-07-30 18:01:36 +08:00
server:
port: ${INTEGRATION_PORT:9210}
spring:
2026-07-31 11:02:03 +08:00
profiles:
active: ${SPRING_PROFILES_ACTIVE:dev}
2026-07-30 18:01:36 +08:00
application:
name: integration-service
2026-08-05 11:46:05 +08:00
servlet:
multipart:
max-file-size: 5MB
max-request-size: 6MB
2026-07-30 18:01:36 +08:00
autoconfigure:
exclude:
- org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
- com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration
config:
import:
- optional:nacos:baiyue-common.yml?group=BAIYUE&refreshEnabled=true
- optional:nacos:${spring.application.name}.yml?group=BAIYUE&refreshEnabled=true
cloud:
nacos:
server-addr: ${NACOS_SERVER_ADDR:127.0.0.1:8848}
username: ${NACOS_USERNAME:nacos}
password: ${NACOS_PASSWORD:nacos}
discovery:
enabled: ${NACOS_DISCOVERY_ENABLED:true}
register-enabled: ${NACOS_REGISTER_ENABLED:true}
group: ${NACOS_GROUP:BAIYUE}
namespace: ${NACOS_NAMESPACE:public}
config:
namespace: ${NACOS_NAMESPACE:public}
baiyue:
security:
internal-service-token: ${INTERNAL_SERVICE_TOKEN:change-me-to-an-internal-token-at-least-32-bytes-long}
integration:
baidu-ocr:
enabled: ${BAIDU_OCR_ENABLED:false}
api-key: ${BAIDU_OCR_API_KEY:}
secret-key: ${BAIDU_OCR_SECRET_KEY:}
2026-07-31 11:58:46 +08:00
token-url: ${BAIDU_OCR_TOKEN_URL:https://aip.baidubce.com/oauth/2.0/token}
meter-url: ${BAIDU_OCR_METER_URL:https://aip.baidubce.com/rest/2.0/ocr/v1/meter}
connect-timeout: ${BAIDU_OCR_CONNECT_TIMEOUT:10s}
request-timeout: ${BAIDU_OCR_REQUEST_TIMEOUT:60s}
input-root: ${WEIGHT_OCR_INPUT_ROOT:${java.io.tmpdir}/baiyue-weight-ocr/input}
output-root: ${WEIGHT_OCR_OUTPUT_ROOT:${java.io.tmpdir}/baiyue-weight-ocr/output}
2026-08-05 11:46:05 +08:00
max-image-size: ${WEIGHT_OCR_MAX_IMAGE_SIZE:5MB}
2026-07-31 11:58:46 +08:00
max-image-pixels: ${WEIGHT_OCR_MAX_IMAGE_PIXELS:40000000}
max-batch-size: ${WEIGHT_OCR_MAX_BATCH_SIZE:50}
min-request-interval: ${BAIDU_OCR_MIN_REQUEST_INTERVAL:600ms}
max-qps-retries: ${BAIDU_OCR_MAX_QPS_RETRIES:3}
2026-07-30 18:01:36 +08:00
amazon-sp-api:
enabled: ${AMAZON_SP_API_ENABLED:false}
client-id: ${AMAZON_SP_API_CLIENT_ID:}
client-secret: ${AMAZON_SP_API_CLIENT_SECRET:}
refresh-token: ${AMAZON_SP_API_REFRESH_TOKEN:}
aws-access-key: ${AMAZON_SP_API_AWS_ACCESS_KEY:}
aws-secret-key: ${AMAZON_SP_API_AWS_SECRET_KEY:}
region: ${AMAZON_SP_API_REGION:}
management:
endpoints:
web:
exposure:
include: health,info,prometheus
endpoint:
health:
probes:
enabled: true
2026-07-31 18:10:32 +08:00
logging:
file:
name: "${LOGGING_FILE_NAME:${LOG_PATH:./logs}/${spring.application.name}.log}"
logback:
rollingpolicy:
file-name-pattern: "${LOGGING_ROLLING_FILE_NAME_PATTERN:${LOG_PATH:./logs}/${spring.application.name}.%d{yyyy-MM-dd}.%i.log.gz}"
max-file-size: "${LOGGING_ROLLING_MAX_FILE_SIZE:100MB}"
2026-08-05 10:35:07 +08:00
max-history: "${LOGGING_ROLLING_MAX_HISTORY:7}"
2026-07-31 18:10:32 +08:00
total-size-cap: "${LOGGING_ROLLING_TOTAL_SIZE_CAP:5GB}"
clean-history-on-start: "${LOGGING_ROLLING_CLEAN_HISTORY_ON_START:false}"