Fix : update the config
This commit is contained in:
@@ -1,3 +1,13 @@
|
|||||||
|
appName: "onix"
|
||||||
|
log:
|
||||||
|
level: debug
|
||||||
|
destinations:
|
||||||
|
- type: stdout
|
||||||
|
contextKeys:
|
||||||
|
- transaction_id
|
||||||
|
- message_id
|
||||||
|
- subscriber_id
|
||||||
|
- module_id
|
||||||
http:
|
http:
|
||||||
port: 8080
|
port: 8080
|
||||||
timeout:
|
timeout:
|
||||||
@@ -16,6 +26,9 @@ modules:
|
|||||||
httpClientConfig:
|
httpClientConfig:
|
||||||
maxIdleConns: 1000
|
maxIdleConns: 1000
|
||||||
maxIdleConnsPerHost: 200
|
maxIdleConnsPerHost: 200
|
||||||
|
idleConnTimeout: 300s
|
||||||
|
responseHeaderTimeout: 5s
|
||||||
|
plugins:
|
||||||
registry:
|
registry:
|
||||||
id: registry
|
id: registry
|
||||||
config:
|
config:
|
||||||
@@ -63,6 +76,9 @@ modules:
|
|||||||
httpClientConfig:
|
httpClientConfig:
|
||||||
maxIdleConns: 1000
|
maxIdleConns: 1000
|
||||||
maxIdleConnsPerHost: 200
|
maxIdleConnsPerHost: 200
|
||||||
|
idleConnTimeout: 300s
|
||||||
|
responseHeaderTimeout: 5s
|
||||||
|
plugins:
|
||||||
registry:
|
registry:
|
||||||
id: registry
|
id: registry
|
||||||
config:
|
config:
|
||||||
|
|||||||
@@ -1,41 +1,25 @@
|
|||||||
# ONIX BAP Caller Routing Configuration
|
|
||||||
|
|
||||||
# Supports Phase 1 (Discover Aggregation) and Phase 2+ (Direct BPP Routing)
|
|
||||||
|
|
||||||
# Phase 1: Discover (Aggregation via CDS)
|
|
||||||
|
|
||||||
# Phase 2+: Other Requests (Direct to BPP, NO CDS involvement)
|
|
||||||
|
|
||||||
# These routes use bpp_uri from context (provided in on_discover aggregated response)
|
|
||||||
|
|
||||||
routingRules:
|
routingRules:
|
||||||
|
- domain: "ONDC:TRV10"
|
||||||
# Phase 1: Discover to CDS
|
version: "2.0.0"
|
||||||
|
routingType: "bpp"
|
||||||
- domain: ev_charging_network
|
|
||||||
version: "1.0.0"
|
|
||||||
targetType: url
|
|
||||||
target:
|
target:
|
||||||
url: http://mock-cds:8082/csd
|
url: "https://gateway.example.com"
|
||||||
excludeAction: false
|
|
||||||
endpoints:
|
endpoints:
|
||||||
- discover
|
- search
|
||||||
|
- domain: "ONDC:TRV10"
|
||||||
|
version: "2.0.0"
|
||||||
|
routingType: "bpp"
|
||||||
# Phase 2+: Other actions to BPP (via context_endpoint)
|
|
||||||
|
|
||||||
- domain: ev_charging_network
|
|
||||||
version: "1.0.0"
|
|
||||||
targetType: bpp
|
|
||||||
target: {}
|
|
||||||
endpoints:
|
endpoints:
|
||||||
- select
|
- select
|
||||||
- init
|
- init
|
||||||
- confirm
|
- confirm
|
||||||
- status
|
- status
|
||||||
- track
|
|
||||||
- cancel
|
- cancel
|
||||||
- update
|
- domain: "ONDC:TRV12"
|
||||||
- rating
|
version: "2.0.0"
|
||||||
- support
|
routingType: "bpp"
|
||||||
|
endpoints:
|
||||||
|
- select
|
||||||
|
- init
|
||||||
|
- confirm
|
||||||
|
- status
|
||||||
Reference in New Issue
Block a user