diff --git a/config/onix/adapter.yaml b/config/onix/adapter.yaml index 90dc3c3..200388c 100644 --- a/config/onix/adapter.yaml +++ b/config/onix/adapter.yaml @@ -1,3 +1,13 @@ +appName: "onix" +log: + level: debug + destinations: + - type: stdout + contextKeys: + - transaction_id + - message_id + - subscriber_id + - module_id http: port: 8080 timeout: @@ -16,6 +26,9 @@ modules: httpClientConfig: maxIdleConns: 1000 maxIdleConnsPerHost: 200 + idleConnTimeout: 300s + responseHeaderTimeout: 5s + plugins: registry: id: registry config: @@ -63,6 +76,9 @@ modules: httpClientConfig: maxIdleConns: 1000 maxIdleConnsPerHost: 200 + idleConnTimeout: 300s + responseHeaderTimeout: 5s + plugins: registry: id: registry config: diff --git a/config/onix/bapTxnCaller-routing.yaml b/config/onix/bapTxnCaller-routing.yaml index 404d0fe..b1d5a44 100644 --- a/config/onix/bapTxnCaller-routing.yaml +++ b/config/onix/bapTxnCaller-routing.yaml @@ -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: - - # Phase 1: Discover to CDS - - - domain: ev_charging_network - version: "1.0.0" - targetType: url + - domain: "ONDC:TRV10" + version: "2.0.0" + routingType: "bpp" target: - url: http://mock-cds:8082/csd - excludeAction: false + url: "https://gateway.example.com" endpoints: - - discover - - - - # Phase 2+: Other actions to BPP (via context_endpoint) - - - domain: ev_charging_network - version: "1.0.0" - targetType: bpp - target: {} + - search + - domain: "ONDC:TRV10" + version: "2.0.0" + routingType: "bpp" endpoints: - select - init - confirm - status - - track - cancel - - update - - rating - - support + - domain: "ONDC:TRV12" + version: "2.0.0" + routingType: "bpp" + endpoints: + - select + - init + - confirm + - status \ No newline at end of file