70 lines
1.6 KiB
YAML
70 lines
1.6 KiB
YAML
#spring:
|
|
# redis:
|
|
# host: localhost
|
|
# port: 6379
|
|
|
|
resilience4j:
|
|
ratelimiter:
|
|
instances:
|
|
mpesaLimiter:
|
|
limit-for-period: 10
|
|
limit-refresh-period: 1s
|
|
timeout-duration: 0s
|
|
|
|
retry:
|
|
instances:
|
|
mpesaRetry:
|
|
max-attempts: 3
|
|
wait-duration: 2s
|
|
retry-exceptions:
|
|
- org.springframework.web.reactive.function.client.WebClientRequestException
|
|
- java.io.IOException
|
|
- com.example.mpesa.exceptions.MpesaBusyException
|
|
ignore-exceptions:
|
|
- com.test.payment.exceptions.MpesaPermanentException
|
|
- java.lang.IllegalArgumentException
|
|
|
|
|
|
circuitbreaker:
|
|
instances:
|
|
mpesaCircuitBreaker:
|
|
sliding-window-size: 10
|
|
permitted-number-of-calls-in-half-open-state: 3
|
|
failure-rate-threshold: 50
|
|
wait-duration-in-open-state: 10s
|
|
|
|
|
|
|
|
|
|
|
|
spring:
|
|
r2dbc:
|
|
url: r2dbc:h2:mem:///mpesa_db;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
|
|
username: sa
|
|
password:
|
|
sql:
|
|
init:
|
|
mode: always
|
|
schema-locations: classpath:schema.sql
|
|
main:
|
|
web-application-type: reactive
|
|
|
|
logging:
|
|
level:
|
|
org.springframework.data.r2dbc: DEBUG
|
|
|
|
springdoc:
|
|
swagger-ui:
|
|
path: /swagger-ui.html
|
|
operationsSorter: method
|
|
tagsSorter: alpha
|
|
api-docs:
|
|
path: /v3/api-docs
|
|
packages-to-scan: com.test.payment.controller
|
|
|
|
mpesa:
|
|
base-url: https://sandbox.safaricom.co.ke
|
|
consumer-key: k6e7LtBNeVX7V8MPqB7P83FsZio8cRZD
|
|
consumer-secret: cGwiWzhDGopC3dho
|
|
business-short-code: 174379
|
|
pass-key: bfb279f9aa9bdbcf158e97dd71a467cd2e0c893059b10f78e6b72ada1ed2c919 |