merged with latest main
This commit is contained in:
119
config/local-beckn-one-bap.yaml
Normal file
119
config/local-beckn-one-bap.yaml
Normal file
@@ -0,0 +1,119 @@
|
||||
appName: "onix-local"
|
||||
log:
|
||||
level: debug
|
||||
destinations:
|
||||
- type: stdout
|
||||
contextKeys:
|
||||
- transaction_id
|
||||
- message_id
|
||||
- subscriber_id
|
||||
- module_id
|
||||
http:
|
||||
port: 8081
|
||||
timeout:
|
||||
read: 30
|
||||
write: 30
|
||||
idle: 30
|
||||
pluginManager:
|
||||
root: ./plugins
|
||||
modules:
|
||||
- name: bapTxnReceiver
|
||||
path: /bap/receiver/
|
||||
handler:
|
||||
type: std
|
||||
role: bap
|
||||
httpClientConfig:
|
||||
maxIdleConns: 1000
|
||||
maxIdleConnsPerHost: 200
|
||||
idleConnTimeout: 300s
|
||||
responseHeaderTimeout: 5s
|
||||
plugins:
|
||||
registry:
|
||||
id: dediregistry
|
||||
config:
|
||||
url: http://34.14.173.68:8080/dedi
|
||||
registryName: subscribers.beckn.one
|
||||
timeout: 10
|
||||
retry_max: 3
|
||||
retry_wait_min: 100ms
|
||||
retry_wait_max: 500ms
|
||||
keyManager:
|
||||
id: simplekeymanager
|
||||
config:
|
||||
networkParticipant: ev-charging.sandbox1.com
|
||||
keyId: 76EU7PktCXdPoNEZBjmg4Eb25A2egsd5MYJ67Qxza7bJQFvBHCYxgk
|
||||
signingPrivateKey: 9NBh67Pk/6v3irrkYZHlQ5E1qw+GivHdDFtKeCylzIM=
|
||||
signingPublicKey: Z3Hnc8FZDo/7dwWApeRVs6OV560gr7uxPsFUDGUMsBg=
|
||||
encrPrivateKey: 9NBh67Pk/6v3irrkYZHlQ5E1qw+GivHdDFtKeCylzIM=
|
||||
encrPublicKey: Z3Hnc8FZDo/7dwWApeRVs6OV560gr7uxPsFUDGUMsBg=
|
||||
cache:
|
||||
id: cache
|
||||
config:
|
||||
addr: redis:6379
|
||||
schemaValidator:
|
||||
id: schemavalidator
|
||||
config:
|
||||
schemaDir: ./schemas
|
||||
signValidator:
|
||||
id: signvalidator
|
||||
router:
|
||||
id: router
|
||||
config:
|
||||
routingConfig: ./config/local-beckn-one-routing-BAPReceiver.yaml
|
||||
middleware:
|
||||
- id: reqpreprocessor
|
||||
config:
|
||||
uuidKeys: transaction_id,message_id
|
||||
role: bap
|
||||
steps:
|
||||
- validateSign
|
||||
- addRoute
|
||||
|
||||
- name: bapTxnCaller
|
||||
path: /bap/caller/
|
||||
handler:
|
||||
type: std
|
||||
role: bap
|
||||
httpClientConfig:
|
||||
maxIdleConns: 1000
|
||||
maxIdleConnsPerHost: 200
|
||||
idleConnTimeout: 300s
|
||||
responseHeaderTimeout: 5s
|
||||
plugins:
|
||||
registry:
|
||||
id: dediregistry
|
||||
config:
|
||||
url: http://34.14.173.68:8080/dedi
|
||||
registryName: subscribers.beckn.one
|
||||
timeout: 10
|
||||
retry_max: 3
|
||||
retry_wait_min: 100ms
|
||||
retry_wait_max: 500ms
|
||||
keyManager:
|
||||
id: simplekeymanager
|
||||
config:
|
||||
networkParticipant: ev-charging.sandbox1.com
|
||||
keyId: 76EU7PktCXdPoNEZBjmg4Eb25A2egsd5MYJ67Qxza7bJQFvBHCYxgk
|
||||
signingPrivateKey: 9NBh67Pk/6v3irrkYZHlQ5E1qw+GivHdDFtKeCylzIM=
|
||||
signingPublicKey: Z3Hnc8FZDo/7dwWApeRVs6OV560gr7uxPsFUDGUMsBg=
|
||||
encrPrivateKey: 9NBh67Pk/6v3irrkYZHlQ5E1qw+GivHdDFtKeCylzIM=
|
||||
encrPublicKey: Z3Hnc8FZDo/7dwWApeRVs6OV560gr7uxPsFUDGUMsBg=
|
||||
cache:
|
||||
id: cache
|
||||
config:
|
||||
addr: redis:6379
|
||||
router:
|
||||
id: router
|
||||
config:
|
||||
routingConfig: ./config/local-beckn-one-routing-BAPCaller.yaml
|
||||
signer:
|
||||
id: signer
|
||||
middleware:
|
||||
- id: reqpreprocessor
|
||||
config:
|
||||
uuidKeys: transaction_id,message_id
|
||||
role: bap
|
||||
steps:
|
||||
- addRoute
|
||||
- sign
|
||||
|
||||
113
config/local-beckn-one-bpp.yaml
Normal file
113
config/local-beckn-one-bpp.yaml
Normal file
@@ -0,0 +1,113 @@
|
||||
appName: "onix-local"
|
||||
log:
|
||||
level: debug
|
||||
destinations:
|
||||
- type: stdout
|
||||
contextKeys:
|
||||
- transaction_id
|
||||
- message_id
|
||||
- subscriber_id
|
||||
- module_id
|
||||
http:
|
||||
port: 8082
|
||||
timeout:
|
||||
read: 30
|
||||
write: 30
|
||||
idle: 30
|
||||
pluginManager:
|
||||
root: ./plugins
|
||||
modules:
|
||||
- name: bppTxnReceiver
|
||||
path: /bpp/receiver/
|
||||
handler:
|
||||
type: std
|
||||
role: bpp
|
||||
httpClientConfig:
|
||||
maxIdleConns: 1000
|
||||
maxIdleConnsPerHost: 200
|
||||
idleConnTimeout: 300s
|
||||
responseHeaderTimeout: 5s
|
||||
plugins:
|
||||
registry:
|
||||
id: dediregistry
|
||||
config:
|
||||
url: http://34.14.173.68:8080/dedi
|
||||
registryName: subscribers.beckn.one
|
||||
timeout: 10
|
||||
retry_max: 3
|
||||
retry_wait_min: 100ms
|
||||
retry_wait_max: 500ms
|
||||
keyManager:
|
||||
id: simplekeymanager
|
||||
config:
|
||||
networkParticipant: ev-charging.sandbox2.com
|
||||
keyId: 76EU7ncBX74BMNTQJMcMYoTMSzU7k71owUF53fN4jdxmosxZrdjdDk
|
||||
signingPrivateKey: hnMdzvcZBnLJ6W1f4Y2ZCLlJo4phKMvs48ZbXjbS7/k=
|
||||
signingPublicKey: H1xM/ejGIJpH+DmAF1A9KjBBLJ74pZ8B0gnZ4z4DIkU=
|
||||
encrPrivateKey: hnMdzvcZBnLJ6W1f4Y2ZCLlJo4phKMvs48ZbXjbS7/k=
|
||||
encrPublicKey: H1xM/ejGIJpH+DmAF1A9KjBBLJ74pZ8B0gnZ4z4DIkU=
|
||||
cache:
|
||||
id: cache
|
||||
config:
|
||||
addr: redis:6379
|
||||
schemaValidator:
|
||||
id: schemavalidator
|
||||
config:
|
||||
schemaDir: ./schemas
|
||||
signValidator:
|
||||
id: signvalidator
|
||||
router:
|
||||
id: router
|
||||
config:
|
||||
routingConfig: ./config/local-beckn-one-routing-BPPReceiver.yaml
|
||||
steps:
|
||||
- validateSign
|
||||
- addRoute
|
||||
|
||||
- name: bppTxnCaller
|
||||
path: /bpp/caller/
|
||||
handler:
|
||||
type: std
|
||||
role: bpp
|
||||
httpClientConfig:
|
||||
maxIdleConns: 1000
|
||||
maxIdleConnsPerHost: 200
|
||||
idleConnTimeout: 300s
|
||||
responseHeaderTimeout: 5s
|
||||
plugins:
|
||||
registry:
|
||||
id: dediregistry
|
||||
config:
|
||||
url: http://34.14.173.68:8080/dedi
|
||||
registryName: subscribers.beckn.one
|
||||
timeout: 10
|
||||
retry_max: 3
|
||||
retry_wait_min: 100ms
|
||||
retry_wait_max: 500ms
|
||||
keyManager:
|
||||
id: simplekeymanager
|
||||
config:
|
||||
networkParticipant: ev-charging.sandbox2.com
|
||||
keyId: 76EU7ncBX74BMNTQJMcMYoTMSzU7k71owUF53fN4jdxmosxZrdjdDk
|
||||
signingPrivateKey: hnMdzvcZBnLJ6W1f4Y2ZCLlJo4phKMvs48ZbXjbS7/k=
|
||||
signingPublicKey: H1xM/ejGIJpH+DmAF1A9KjBBLJ74pZ8B0gnZ4z4DIkU=
|
||||
encrPrivateKey: hnMdzvcZBnLJ6W1f4Y2ZCLlJo4phKMvs48ZbXjbS7/k=
|
||||
encrPublicKey: H1xM/ejGIJpH+DmAF1A9KjBBLJ74pZ8B0gnZ4z4DIkU=
|
||||
cache:
|
||||
id: cache
|
||||
config:
|
||||
addr: redis:6379
|
||||
router:
|
||||
id: router
|
||||
config:
|
||||
routingConfig: ./config/local-beckn-one-routing-BPPCaller.yaml
|
||||
signer:
|
||||
id: signer
|
||||
middleware:
|
||||
- id: reqpreprocessor
|
||||
config:
|
||||
uuidKeys: transaction_id,message_id
|
||||
role: bpp
|
||||
steps:
|
||||
- addRoute
|
||||
- sign
|
||||
22
config/local-beckn-one-routing-BAPCaller.yaml
Normal file
22
config/local-beckn-one-routing-BAPCaller.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
routingRules:
|
||||
- domain: "beckn.one:deg:ev-charging:2.0.0" # Retail domain
|
||||
version: "2.0.0"
|
||||
targetType: "bpp"
|
||||
endpoints:
|
||||
- select
|
||||
- init
|
||||
- confirm
|
||||
- status
|
||||
- track
|
||||
- cancel
|
||||
- update
|
||||
- rating
|
||||
- support
|
||||
|
||||
- domain: "beckn.one:deg:ev-charging:2.0.0" # Retail domain
|
||||
version: "2.0.0"
|
||||
targetType: "url"
|
||||
target:
|
||||
url: "https://34.93.141.21.sslip.io/beckn"
|
||||
endpoints:
|
||||
- discover
|
||||
14
config/local-beckn-one-routing-BAPReceiver.yaml
Normal file
14
config/local-beckn-one-routing-BAPReceiver.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
routingRules:
|
||||
- domain: "beckn.one:deg:ev-charging:2.0.0"
|
||||
version: "2.0.0"
|
||||
targetType: "url"
|
||||
target:
|
||||
url: "http://sandbox-bap:3001/api/bap-webhook"
|
||||
endpoints:
|
||||
- on_discover
|
||||
- on_select
|
||||
- on_init
|
||||
- on_confirm
|
||||
- on_status
|
||||
- on_update
|
||||
- on_cancel
|
||||
14
config/local-beckn-one-routing-BPPCaller.yaml
Normal file
14
config/local-beckn-one-routing-BPPCaller.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
routingRules:
|
||||
- domain: "beckn.one:deg:ev-charging:2.0.0" # Retail domain
|
||||
version: "2.0.0"
|
||||
targetType: "bap"
|
||||
endpoints:
|
||||
- on_status
|
||||
- on_cancel
|
||||
- on_update
|
||||
- on_select
|
||||
- on_init
|
||||
- on_confirm
|
||||
- on_track
|
||||
- on_rating
|
||||
- on_support
|
||||
16
config/local-beckn-one-routing-BPPReceiver.yaml
Normal file
16
config/local-beckn-one-routing-BPPReceiver.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
routingRules:
|
||||
- domain: "beckn.one:deg:ev-charging:2.0.0" # Retail domain
|
||||
version: "2.0.0"
|
||||
targetType: "url"
|
||||
target:
|
||||
url: "http://sandbox-bpp:3002/api/webhook"
|
||||
endpoints:
|
||||
- select
|
||||
- init
|
||||
- confirm
|
||||
- status
|
||||
- track
|
||||
- cancel
|
||||
- update
|
||||
- rating
|
||||
- support
|
||||
Reference in New Issue
Block a user