Added Config Templates
Feat/config Merge pull request #439 from rupinder-syngh/feat/config
This commit is contained in:
97
config/onix-bap/adapter.yaml
Normal file
97
config/onix-bap/adapter.yaml
Normal file
@@ -0,0 +1,97 @@
|
||||
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
|
||||
registryUrl: http://localhost:8080/reg
|
||||
plugins:
|
||||
keyManager:
|
||||
id: secretskeymanager
|
||||
config:
|
||||
projectID: ${projectID}
|
||||
cache:
|
||||
id: redis
|
||||
config:
|
||||
addr: 192.168.1.1:6379
|
||||
schemaValidator:
|
||||
id: schemavalidator
|
||||
config:
|
||||
schemaDir: /mnt/gcs/configs/schemas
|
||||
signValidator:
|
||||
id: signvalidator
|
||||
publisher:
|
||||
id: publisher
|
||||
config:
|
||||
project: ${projectID}
|
||||
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: ${projectID}
|
||||
cache:
|
||||
id: redis
|
||||
config:
|
||||
addr: 192.168.1.1:6379
|
||||
schemaValidator:
|
||||
id: schemavalidator
|
||||
config:
|
||||
schemaDir: /mnt/gcs/configs/schemas
|
||||
signer:
|
||||
id: signer
|
||||
publisher:
|
||||
id: publisher
|
||||
config:
|
||||
project: ${projectID}
|
||||
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
|
||||
25
config/onix-bap/bapTxnCaller-routing.yaml
Normal file
25
config/onix-bap/bapTxnCaller-routing.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
routingRules:
|
||||
- domain: "ONDC:TRV10"
|
||||
version: "2.0.0"
|
||||
routingType: "bpp"
|
||||
target:
|
||||
url: "https://gateway.example.com"
|
||||
endpoints:
|
||||
- search
|
||||
- domain: "ONDC:TRV10"
|
||||
version: "2.0.0"
|
||||
routingType: "bpp"
|
||||
endpoints:
|
||||
- select
|
||||
- init
|
||||
- confirm
|
||||
- status
|
||||
- cancel
|
||||
- domain: "ONDC:TRV12"
|
||||
version: "2.0.0"
|
||||
routingType: "bpp"
|
||||
endpoints:
|
||||
- select
|
||||
- init
|
||||
- confirm
|
||||
- status
|
||||
20
config/onix-bap/bapTxnReciever-routing.yaml
Normal file
20
config/onix-bap/bapTxnReciever-routing.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
routingRules:
|
||||
- domain: "ONDC:TRV10"
|
||||
version: "2.0.0"
|
||||
routingType: "url"
|
||||
target:
|
||||
url: "https://services-backend/trv/v1"
|
||||
endpoints:
|
||||
- on_select
|
||||
- on_init
|
||||
- on_confirm
|
||||
- on_status
|
||||
- on_update
|
||||
- on_cancel
|
||||
- domain: "ONDC:TRV10"
|
||||
version: "2.0.0"
|
||||
routingType: "msgq"
|
||||
target:
|
||||
topic_id: "trv_topic_id1"
|
||||
endpoints:
|
||||
- on_search
|
||||
8
config/onix-bap/plugin.yaml
Normal file
8
config/onix-bap/plugin.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
plugins:
|
||||
- gcpAuthMdw
|
||||
- nopsigner
|
||||
- router
|
||||
- publisher
|
||||
- reqpreprocessor
|
||||
- nopschemavalidator
|
||||
- nopsignvalidator
|
||||
98
config/onix-bpp/adapter.yaml
Normal file
98
config/onix-bpp/adapter.yaml
Normal file
@@ -0,0 +1,98 @@
|
||||
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: bppTxnReciever
|
||||
path: /bpp/reciever/
|
||||
handler:
|
||||
type: std
|
||||
role: bpp
|
||||
subscriberId: bpp1
|
||||
registryUrl: http://localhost:8080/reg
|
||||
plugins:
|
||||
keyManager:
|
||||
id: secretskeymanager
|
||||
config:
|
||||
projectID: ${projectID}
|
||||
cache:
|
||||
id: redis
|
||||
config:
|
||||
addr: 192.168.1.1:6379
|
||||
schemaValidator:
|
||||
id: schemavalidator
|
||||
config:
|
||||
schemaDir: /mnt/gcs/configs/schemas
|
||||
signValidator:
|
||||
id: signvalidator
|
||||
publisher:
|
||||
id: publisher
|
||||
config:
|
||||
project: ${projectID}
|
||||
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: ${projectID}
|
||||
cache:
|
||||
id: redis
|
||||
config:
|
||||
addr: 192.168.1.1:6379
|
||||
schemaValidator:
|
||||
id: schemavalidator
|
||||
config:
|
||||
schemaDir: /mnt/gcs/configs/schemas
|
||||
signer:
|
||||
id: signer
|
||||
publisher:
|
||||
id: publisher
|
||||
config:
|
||||
project: ${projectID}
|
||||
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
|
||||
23
config/onix-bpp/bppTxnCaller-routing.yaml
Normal file
23
config/onix-bpp/bppTxnCaller-routing.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
routingRules:
|
||||
- domain: "ONDC:TRV10"
|
||||
version: "2.0.0"
|
||||
routingType: "bap"
|
||||
endpoints:
|
||||
- on_search
|
||||
- on_select
|
||||
- on_init
|
||||
- on_confirm
|
||||
- on_status
|
||||
- on_update
|
||||
- on_cancel
|
||||
- domain: "ONDC:TRV11"
|
||||
version: "2.0.0"
|
||||
routingType: "bap"
|
||||
endpoints:
|
||||
- on_search
|
||||
- on_select
|
||||
- on_init
|
||||
- on_confirm
|
||||
- on_status
|
||||
- on_update
|
||||
- on_cancel
|
||||
30
config/onix-bpp/bppTxnReciever-routing.yaml
Normal file
30
config/onix-bpp/bppTxnReciever-routing.yaml
Normal file
@@ -0,0 +1,30 @@
|
||||
routingRules:
|
||||
- domain: "ONDC:TRV10"
|
||||
version: "2.0.0"
|
||||
routingType: "url"
|
||||
target:
|
||||
url: "https://services-backend/trv/v1"
|
||||
endpoints:
|
||||
- select
|
||||
- init
|
||||
- confirm
|
||||
- status
|
||||
- cancel
|
||||
|
||||
- domain: "ONDC:TRV10"
|
||||
version: "2.0.0"
|
||||
routingType: "msgq"
|
||||
target:
|
||||
topic_id: "trv_topic_id1"
|
||||
endpoints:
|
||||
- search
|
||||
|
||||
- domain: "ONDC:TRV11"
|
||||
version: "2.0.0"
|
||||
routingType: "url"
|
||||
target:
|
||||
url: "https://services-backend/trv/v1"
|
||||
endpoints:
|
||||
- select
|
||||
- init
|
||||
- confirm
|
||||
8
config/onix-bpp/plugin.yaml
Normal file
8
config/onix-bpp/plugin.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
plugins:
|
||||
- gcpAuthMdw
|
||||
- nopsigner
|
||||
- router
|
||||
- publisher
|
||||
- reqpreprocessor
|
||||
- nopschemavalidator
|
||||
- nopsignvalidator
|
||||
176
config/onix/adapter.yaml
Normal file
176
config/onix/adapter.yaml
Normal file
@@ -0,0 +1,176 @@
|
||||
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
|
||||
registryUrl: http://localhost:8080/reg
|
||||
plugins:
|
||||
keyManager:
|
||||
id: secretskeymanager
|
||||
config:
|
||||
projectID: ${projectID}
|
||||
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: ${projectID}
|
||||
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: ${projectID}
|
||||
cache:
|
||||
id: redis
|
||||
config:
|
||||
addr: 192.168.1.1:6379
|
||||
schemaValidator:
|
||||
id: schemavalidator
|
||||
config:
|
||||
schemaDir: /mnt/gcs/configs/schemas
|
||||
signer:
|
||||
id: signer
|
||||
publisher:
|
||||
id: publisher
|
||||
config:
|
||||
project: ${projectID}
|
||||
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: bppTxnReciever
|
||||
path: /bpp/reciever/
|
||||
handler:
|
||||
type: std
|
||||
role: bpp
|
||||
subscriberId: bpp1
|
||||
registryUrl: http://localhost:8080/reg
|
||||
plugins:
|
||||
keyManager:
|
||||
id: secretskeymanager
|
||||
config:
|
||||
projectID: ${projectID}
|
||||
cache:
|
||||
id: redis
|
||||
config:
|
||||
addr: 192.168.1.1:6379
|
||||
schemaValidator:
|
||||
id: schemavalidator
|
||||
config:
|
||||
schemaDir: /mnt/gcs/configs/schemas
|
||||
signValidator:
|
||||
id: signvalidator
|
||||
publisher:
|
||||
id: publisher
|
||||
config:
|
||||
project: ${projectID}
|
||||
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: ${projectID}
|
||||
cache:
|
||||
id: redis
|
||||
config:
|
||||
addr: 192.168.1.1:6379
|
||||
schemaValidator:
|
||||
id: schemavalidator
|
||||
config:
|
||||
schemaDir: /mnt/gcs/configs/schemas
|
||||
signer:
|
||||
id: signer
|
||||
publisher:
|
||||
id: publisher
|
||||
config:
|
||||
project: ${projectID}
|
||||
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
|
||||
25
config/onix/bapTxnCaller-routing.yaml
Normal file
25
config/onix/bapTxnCaller-routing.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
routingRules:
|
||||
- domain: "ONDC:TRV10"
|
||||
version: "2.0.0"
|
||||
routingType: "bpp"
|
||||
target:
|
||||
url: "https://gateway.example.com"
|
||||
endpoints:
|
||||
- search
|
||||
- domain: "ONDC:TRV10"
|
||||
version: "2.0.0"
|
||||
routingType: "bpp"
|
||||
endpoints:
|
||||
- select
|
||||
- init
|
||||
- confirm
|
||||
- status
|
||||
- cancel
|
||||
- domain: "ONDC:TRV12"
|
||||
version: "2.0.0"
|
||||
routingType: "bpp"
|
||||
endpoints:
|
||||
- select
|
||||
- init
|
||||
- confirm
|
||||
- status
|
||||
20
config/onix/bapTxnReciever-routing.yaml
Normal file
20
config/onix/bapTxnReciever-routing.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
routingRules:
|
||||
- domain: "ONDC:TRV10"
|
||||
version: "2.0.0"
|
||||
routingType: "url"
|
||||
target:
|
||||
url: "https://services-backend/trv/v1"
|
||||
endpoints:
|
||||
- on_select
|
||||
- on_init
|
||||
- on_confirm
|
||||
- on_status
|
||||
- on_update
|
||||
- on_cancel
|
||||
- domain: "ONDC:TRV10"
|
||||
version: "2.0.0"
|
||||
routingType: "msgq"
|
||||
target:
|
||||
topic_id: "trv_topic_id1"
|
||||
endpoints:
|
||||
- on_search
|
||||
23
config/onix/bppTxnCaller-routing.yaml
Normal file
23
config/onix/bppTxnCaller-routing.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
routingRules:
|
||||
- domain: "ONDC:TRV10"
|
||||
version: "2.0.0"
|
||||
routingType: "bap"
|
||||
endpoints:
|
||||
- on_search
|
||||
- on_select
|
||||
- on_init
|
||||
- on_confirm
|
||||
- on_status
|
||||
- on_update
|
||||
- on_cancel
|
||||
- domain: "ONDC:TRV11"
|
||||
version: "2.0.0"
|
||||
routingType: "bap"
|
||||
endpoints:
|
||||
- on_search
|
||||
- on_select
|
||||
- on_init
|
||||
- on_confirm
|
||||
- on_status
|
||||
- on_update
|
||||
- on_cancel
|
||||
30
config/onix/bppTxnReciever-routing.yaml
Normal file
30
config/onix/bppTxnReciever-routing.yaml
Normal file
@@ -0,0 +1,30 @@
|
||||
routingRules:
|
||||
- domain: "ONDC:TRV10"
|
||||
version: "2.0.0"
|
||||
routingType: "url"
|
||||
target:
|
||||
url: "https://services-backend/trv/v1"
|
||||
endpoints:
|
||||
- select
|
||||
- init
|
||||
- confirm
|
||||
- status
|
||||
- cancel
|
||||
|
||||
- domain: "ONDC:TRV10"
|
||||
version: "2.0.0"
|
||||
routingType: "msgq"
|
||||
target:
|
||||
topic_id: "trv_topic_id1"
|
||||
endpoints:
|
||||
- search
|
||||
|
||||
- domain: "ONDC:TRV11"
|
||||
version: "2.0.0"
|
||||
routingType: "url"
|
||||
target:
|
||||
url: "https://services-backend/trv/v1"
|
||||
endpoints:
|
||||
- select
|
||||
- init
|
||||
- confirm
|
||||
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