54 lines
1.6 KiB
YAML
54 lines
1.6 KiB
YAML
server:
|
|||
|
|
port: ${INTEGRATION_PORT:9210}
|
||
|
|
|
||
|
|
spring:
|
||
|
|
application:
|
||
|
|
name: integration-service
|
||
|
|
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:}
|
||
|
|
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
|