feat: added configs - onix, onix-bap, onix-bpp
This commit is contained in:
4
config/onix/bapTxnCaller-routing.yaml
Normal file
4
config/onix/bapTxnCaller-routing.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
routes:
|
||||||
|
- action: search
|
||||||
|
type: url
|
||||||
|
target: http://localhost:8080/bpp/reciever/search
|
||||||
4
config/onix/bapTxnReciever-routing.yaml
Normal file
4
config/onix/bapTxnReciever-routing.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
routes:
|
||||||
|
- action: on_search
|
||||||
|
type: publisher
|
||||||
|
target: bapNetworkReciever
|
||||||
4
config/onix/bppTxnCaller-routing.yaml
Normal file
4
config/onix/bppTxnCaller-routing.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
routes:
|
||||||
|
- action: on_search
|
||||||
|
type: url
|
||||||
|
target: http://localhost:8080/bap/reciever/on_search
|
||||||
4
config/onix/bppTxnReciever-routing.yaml
Normal file
4
config/onix/bppTxnReciever-routing.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
routes:
|
||||||
|
- action: search
|
||||||
|
type: publisher
|
||||||
|
target: bapNetworkReciever
|
||||||
231
config/onix/onix-adapter.yaml
Normal file
231
config/onix/onix-adapter.yaml
Normal file
@@ -0,0 +1,231 @@
|
|||||||
|
appName: "onix"
|
||||||
|
log:
|
||||||
|
level: debug
|
||||||
|
destinations:
|
||||||
|
- type: stdout
|
||||||
|
contextKeys:
|
||||||
|
- transaction_id
|
||||||
|
- message_id
|
||||||
|
- subscriber_id
|
||||||
|
http:
|
||||||
|
port: 8080
|
||||||
|
timeout:
|
||||||
|
read: 30
|
||||||
|
write: 30
|
||||||
|
idle: 30
|
||||||
|
pluginManager:
|
||||||
|
root: /app/plugins
|
||||||
|
remoteRoot: /mnt/gcs/plugins/plugins_bundle.zip
|
||||||
|
modules:
|
||||||
|
- name: bapTxnReciever
|
||||||
|
path: /bap/reciever/
|
||||||
|
handler:
|
||||||
|
type: std
|
||||||
|
role: bap
|
||||||
|
trace:
|
||||||
|
# validateSign: true
|
||||||
|
# addRoute: true
|
||||||
|
# validateSchema: true
|
||||||
|
# reqpreprocessor: true
|
||||||
|
registryUrl: http://localhost:8080/reg
|
||||||
|
plugins:
|
||||||
|
keyManager:
|
||||||
|
id: secretskeymanager
|
||||||
|
config:
|
||||||
|
projectID: trusty-relic-370809
|
||||||
|
cache:
|
||||||
|
id: redis
|
||||||
|
config:
|
||||||
|
addr: 10.81.192.4:6379
|
||||||
|
# schemaValidator:
|
||||||
|
# id: schemavalidator
|
||||||
|
# config:
|
||||||
|
# schemaDir: /mnt/gcs/configs/schemas
|
||||||
|
signValidator:
|
||||||
|
id: signvalidator
|
||||||
|
publisher:
|
||||||
|
id: publisher
|
||||||
|
config:
|
||||||
|
project: trusty-relic-370809
|
||||||
|
topic: bapNetworkReciever
|
||||||
|
router:
|
||||||
|
id: router
|
||||||
|
config:
|
||||||
|
routingConfigPath: /mnt/gcs/configs/bapTxnReciever-routing.yaml
|
||||||
|
middleware:
|
||||||
|
- id: reqpreprocessor
|
||||||
|
config:
|
||||||
|
uuidKeys: transaction_id,message_id
|
||||||
|
role: bap
|
||||||
|
steps:
|
||||||
|
- validateSign
|
||||||
|
- addRoute
|
||||||
|
# - validateSchema
|
||||||
|
- name: bapTxnCaller
|
||||||
|
path: /bap/caller/
|
||||||
|
handler:
|
||||||
|
type: std
|
||||||
|
registryUrl: http://localhost:8080/reg
|
||||||
|
role: bap
|
||||||
|
plugins:
|
||||||
|
keyManager:
|
||||||
|
id: secretskeymanager
|
||||||
|
config:
|
||||||
|
projectID: trusty-relic-370809
|
||||||
|
cache:
|
||||||
|
id: redis
|
||||||
|
config:
|
||||||
|
addr: 10.81.192.4:6379
|
||||||
|
# schemaValidator:
|
||||||
|
# id: schemavalidator
|
||||||
|
# config:
|
||||||
|
# schemaDir: /mnt/gcs/configs/schemas
|
||||||
|
signer:
|
||||||
|
id: signer
|
||||||
|
publisher:
|
||||||
|
id: publisher
|
||||||
|
config:
|
||||||
|
project: trusty-relic-370809
|
||||||
|
topic: bapNetworkReciever
|
||||||
|
router:
|
||||||
|
id: router
|
||||||
|
config:
|
||||||
|
routingConfigPath: /mnt/gcs/configs/bapTxnCaller-routing.yaml
|
||||||
|
middleware:
|
||||||
|
- id: reqpreprocessor
|
||||||
|
config:
|
||||||
|
uuidKeys: transaction_id,message_id
|
||||||
|
role: bap
|
||||||
|
steps:
|
||||||
|
# - validateSchema
|
||||||
|
- addRoute
|
||||||
|
- sign
|
||||||
|
- name: bapSubscribeCaller
|
||||||
|
path: /bap/subscribe
|
||||||
|
handler:
|
||||||
|
type: npSub
|
||||||
|
role: bap
|
||||||
|
registryUrl: http://localhost:8080/reg
|
||||||
|
plugins:
|
||||||
|
keyManager:
|
||||||
|
id: secretskeymanager
|
||||||
|
config:
|
||||||
|
projectID: trusty-relic-370809
|
||||||
|
cache:
|
||||||
|
id: redis
|
||||||
|
config:
|
||||||
|
addr: 10.81.192.4:6379
|
||||||
|
- name: bppTxnReciever
|
||||||
|
path: /bpp/reciever/
|
||||||
|
handler:
|
||||||
|
type: std
|
||||||
|
role: bpp
|
||||||
|
subscriberId: bpp1
|
||||||
|
registryUrl: http://localhost:8080/reg
|
||||||
|
plugins:
|
||||||
|
keyManager:
|
||||||
|
id: secretskeymanager
|
||||||
|
config:
|
||||||
|
projectID: trusty-relic-370809
|
||||||
|
cache:
|
||||||
|
id: redis
|
||||||
|
config:
|
||||||
|
addr: 10.81.192.4:6379
|
||||||
|
# schemaValidator:
|
||||||
|
# id: schemavalidator
|
||||||
|
# config:
|
||||||
|
# schemaDir: /mnt/gcs/configs/schemas
|
||||||
|
signValidator:
|
||||||
|
id: signvalidator
|
||||||
|
publisher:
|
||||||
|
id: publisher
|
||||||
|
config:
|
||||||
|
project: trusty-relic-370809
|
||||||
|
topic: bapNetworkReciever
|
||||||
|
router:
|
||||||
|
id: router
|
||||||
|
config:
|
||||||
|
routingConfigPath: /mnt/gcs/configs/bppTxnReciever-routing.yaml
|
||||||
|
middleware:
|
||||||
|
- id: reqpreprocessor
|
||||||
|
config:
|
||||||
|
uuidKeys: transaction_id,message_id
|
||||||
|
role: bpp
|
||||||
|
steps:
|
||||||
|
- validateSign
|
||||||
|
- addRoute
|
||||||
|
# - validateSchema
|
||||||
|
- name: bppTxnCaller
|
||||||
|
path: /bpp/caller/
|
||||||
|
handler:
|
||||||
|
type: std
|
||||||
|
role: bpp
|
||||||
|
registryUrl: http://localhost:8080/reg
|
||||||
|
plugins:
|
||||||
|
keyManager:
|
||||||
|
id: secretskeymanager
|
||||||
|
config:
|
||||||
|
projectID: trusty-relic-370809
|
||||||
|
cache:
|
||||||
|
id: redis
|
||||||
|
config:
|
||||||
|
addr: 10.81.192.4:6379
|
||||||
|
# schemaValidator:
|
||||||
|
# id: schemavalidator
|
||||||
|
# config:
|
||||||
|
# schemaDir: /mnt/gcs/configs/schemas
|
||||||
|
signer:
|
||||||
|
id: signer
|
||||||
|
publisher:
|
||||||
|
id: publisher
|
||||||
|
config:
|
||||||
|
project: trusty-relic-370809
|
||||||
|
topic: bapNetworkReciever
|
||||||
|
router:
|
||||||
|
id: router
|
||||||
|
config:
|
||||||
|
routingConfigPath: /mnt/gcs/configs/bppTxnCaller-routing.yaml
|
||||||
|
middleware:
|
||||||
|
- id: reqpreprocessor
|
||||||
|
config:
|
||||||
|
uuidKeys: transaction_id,message_id
|
||||||
|
role: bpp
|
||||||
|
steps:
|
||||||
|
# - validateSchema
|
||||||
|
- addRoute
|
||||||
|
- sign
|
||||||
|
- name: bppSubscribeCaller
|
||||||
|
path: /bpp/subscribe
|
||||||
|
handler:
|
||||||
|
type: npSub
|
||||||
|
role: bpp
|
||||||
|
registryUrl: http://localhost:8080/reg
|
||||||
|
plugins:
|
||||||
|
keyManager:
|
||||||
|
id: secretskeymanager
|
||||||
|
config:
|
||||||
|
projectID: trusty-relic-370809
|
||||||
|
cache:
|
||||||
|
id: redis
|
||||||
|
config:
|
||||||
|
addr: 10.81.192.4:6379
|
||||||
|
- name: regSubscribeReciever
|
||||||
|
path: /reg/subscribe
|
||||||
|
handler:
|
||||||
|
type: regSub
|
||||||
|
role: registery
|
||||||
|
plugins:
|
||||||
|
cache:
|
||||||
|
id: redis
|
||||||
|
config:
|
||||||
|
addr: "10.81.192.4:6379"
|
||||||
|
- name: regLookUpReciever
|
||||||
|
path: /reg/lookUp
|
||||||
|
handler:
|
||||||
|
type: lookUp
|
||||||
|
role: registery
|
||||||
|
plugins:
|
||||||
|
cache:
|
||||||
|
id: redis
|
||||||
|
config:
|
||||||
|
addr: "10.81.192.4:6379"
|
||||||
8
config/onix/plugin.yaml
Normal file
8
config/onix/plugin.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
plugins:
|
||||||
|
- gcpAuthMdw
|
||||||
|
- nopsigner
|
||||||
|
- router
|
||||||
|
- publisher
|
||||||
|
- reqpreprocessor
|
||||||
|
- nopschemavalidator
|
||||||
|
- nopsignvalidator
|
||||||
Reference in New Issue
Block a user