You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sdny-jxpt/config/v5.0.3/split/dxhy-gateway-std.yml

253 lines
6.5 KiB

spring:
redis:
database: 12
host: 10.1.1.186
port: 6380
password: 1234qwer
jedis:
pool:
max-active: 100
max-wait: -1
max-idle: 500
min-idle: 5
timeout: 6000
rabbitmq:
host: 10.1.1.186
port: 5672
username: guest
password: guest
sleuth:
enabled: true
http:
legacy:
enabled: true
cloud:
gateway:
discovery:
locator:
enabled: true
lowerCaseServiceId: true
routes:
# =====================================
- id: dxhy-auth
uri: lb://dxhy-auth
order: 8000
predicates:
- Path=/api/auth/**
filters:
- StripPrefix=2
- id: dxhy-admin
uri: lb://dxhy-admin
order: 8001
predicates:
- Path=/api/admin/**
filters:
- StripPrefix=2
- id: dxhy-base
uri: lb://dxhy-base
order: 8002
predicates:
- Path=/api/base/**
filters:
- StripPrefix=2
- id: dxhy-core
uri: lb://dxhy-core
order: 8003
predicates:
- Path=/api/core/**
filters:
- StripPrefix=2
- id: dxhy-extend
uri: lb://dxhy-extend
order: 8004
predicates:
- Path=/api/extend/**
filters:
- StripPrefix=2
- id: dxhy-sign
uri: lb://dxhy-sign
order: 8005
predicates:
- Path=/api/sign/**
filters:
- StripPrefix=2
- id: dxhy-passengerTicket
uri: lb://dxhy-passengerTicket
order: 8006
predicates:
- Path=/api/passengerTicket/**
filters:
- StripPrefix=2
- id: dxhy-manage
uri: lb://dxhy-manage
order: 8007
predicates:
- Path=/api/manage/**
filters:
- StripPrefix=2
- id: dxhy-account
uri: lb://dxhy-account
order: 8008
predicates:
- Path=/api/account/**
filters:
- StripPrefix=2
- id: dxhy-api
uri: lb://dxhy-api
order: 8009
predicates:
- Path=/api/api/**
filters:
- StripPrefix=2
- id: dxhy-erp
uri: lb://dxhy-erp
order: 8010
predicates:
- Path=/api/erp/**
filters:
- StripPrefix=2
- id: dxhy-helpcenter
uri: lb://dxhy-helpcenter
order: 8011
predicates:
- Path=/api/helpcenter/**
filters:
- StripPrefix=2
- id: dxhy-invoice
uri: lb://dxhy-invoice
order: 8012
predicates:
- Path=/api/invoice/**
filters:
- StripPrefix=2
- id: dxhy-order
uri: lb://dxhy-order
order: 8013
predicates:
- Path=/api/order/**
filters:
- StripPrefix=2
- id: dxhy-portrait
uri: lb://dxhy-portrait
order: 8014
predicates:
- Path=/api/portrait/**
filters:
- StripPrefix=2
- id: dxhy-customs
uri: lb://dxhy-customs
order: 8015
predicates:
- Path=/api/customs/**
filters:
- StripPrefix=2
- id: dxhy-export-domestic
uri: lb://dxhy-export-domestic
order: 8016
predicates:
- Path=/api/exportdom/**
filters:
- StripPrefix=2
- id: dxhy-operation-flow
uri: lb://dxhy-operation-flow
order: 8017
predicates:
- Path=/api/base/**,/api/sign/**,/api/customs/**,/api/exportdom/**,/api/extend/**,/api/passengerTicket/**,/api/portrait/**
filters:
- StripPrefix=2
logging:
level:
com.dxhy: DEBUG
file:
path: /Volumes/product/project/logs/gyl/${spring.application.name}/
name: ${logging.file.path}${spring.application.name}
#eureka:
# instance:
# preferIpAddress: true
# statusPageUrlPath: ${server.servlet.context-path}/info
# healthCheckUrlPath: ${server.servlet.context-path}/health
# leaseRenewalIntervalInSeconds: 30
# leaseExpirationDurationInSeconds: 90
# instance-id: ${spring.application.name}:${spring.cloud.client.ipaddress}:${server.port}
# client:
# serviceUrl:
# defaultZone: http://127.0.0.1:18092/eureka/
#请求和响应GZIP压缩支持
feign:
httpclient:
enabled: true
okhttp:
enabled: false
compression:
request:
enabled: true
mime-types: text/xml,application/xml,application/json
min-request-size: 2048
response:
enabled: true
gate:
ignore:
startWith: /auth/jwt,/core/scan/data/upload,
/passengerTicket/reimbursementSystem,
/admin/jasypt/GetJasypt,/checkLogin,/sso/setcookie,
/sso/getUserInfo,/sso/updateUserInfo,/saveUser,
/core/tab,/api/invoice/dii,/api/kp
/admin/sso,/admin/UKey,/core/scan/uploadImg,/admin/jwt,
/flow/reimbursementSystem,
/admin/tabulate/upload,/erp/invoice/dii,/erp/invoice/jxpt/api/v5/
auth:
serviceId: dxhy-admin
user:
token-header: Authorization
client:
token-header: x-client-token
id: dxhy-gateway #不填则默认读取spring.application.name
secret: 123456
#ribbon:
# eureka:
# enabled: true
# ReadTimeout: 60000
# ConnectTimeout: 60000
# MaxAutoRetries: 0
# MaxAutoRetriesNextServer: 1
# OkToRetryOnAllOperations: false
# listOfServers: http://127.0.0.1:8761
hystrix:
threadpool:
default:
coreSize: 1000 ##并发执行的最大线程数,默认10
maxQueueSize: 1000 ##BlockingQueue的最大队列数
queueSizeRejectionThreshold: 500 ##即使maxQueueSize没有达到,达到queueSizeRejectionThreshold该值后,请求也会被拒绝
command:
default:
execution:
isolation:
thread:
timeoutInMilliseconds: 10000
rabbitmq:
prefetchCount: 2 # 个消费者可以fetch的最大消息数量
concurrentConsumers: 2 # 设置并发消费者数量
maxConcurrentConsumers: 10 # 设置最大消费者数量,自动扩展消费者数量关键配置
TO_EXCEL_APPLY: TO_EXCEL_APPLY
TO_INVOICE_LOG: TO_INVOICE_LOG
TO_INVOICE_STATUS: TO_INVOICE_STATUS
TO_MESSAGE_LOG: TO_MESSAGE_LOG
TO_MSG_EXCEL_APPLY: TO_MSG_EXCEL_APPLY
# token过期事变
token:
expore: 3600
endpoints:
enabled: false