From 288c11d8edfa86c745b775febfcc053fb450e9db Mon Sep 17 00:00:00 2001 From: prasad-takale-eminds Date: Wed, 20 Mar 2024 02:25:32 +0530 Subject: [PATCH] Updated the latest change for gateway and registry --- install/docker-compose-v2.yml | 1 + .../gateway_data/config/networks/onix.json | 11 ++++++++ .../gateway_data/config/swf.properties-sample | 25 ++++++++++--------- .../config/swf.properties-sample | 13 +++++++--- 4 files changed, 34 insertions(+), 16 deletions(-) create mode 100644 install/gateway_data/config/networks/onix.json diff --git a/install/docker-compose-v2.yml b/install/docker-compose-v2.yml index c6c906c..435ecfe 100644 --- a/install/docker-compose-v2.yml +++ b/install/docker-compose-v2.yml @@ -27,6 +27,7 @@ services: restart: unless-stopped volumes: - ./gateway_data/config/swf.properties:/gateway/overrideProperties/config/swf.properties + - ./gateway_data/config/networks:/gateway/overrideProperties/config/networks #Update varibales post demo - ./gateway_data/database:/gateway/database bap-client: diff --git a/install/gateway_data/config/networks/onix.json b/install/gateway_data/config/networks/onix.json new file mode 100644 index 0000000..dfc401b --- /dev/null +++ b/install/gateway_data/config/networks/onix.json @@ -0,0 +1,11 @@ +{ + "core_version" : "1.1.0", + "registry_id": "registry-energy.becknprotocol.io..LREG", + "search_provider_id" : "gateway-energy.becknprotocol.io", + "self_registration_supported": true, + "subscription_needed_post_registration" : true, + "base_url": "https://registry-energy.becknprotocol.io", + "registry_url" : "https://registry-energy.becknprotocol.io/subscribers", + "extension_package": "in.succinct.beckn.boc", + "wild_card" : "" +} \ No newline at end of file diff --git a/install/gateway_data/config/swf.properties-sample b/install/gateway_data/config/swf.properties-sample index 33a2e14..0c4c6e2 100644 --- a/install/gateway_data/config/swf.properties-sample +++ b/install/gateway_data/config/swf.properties-sample @@ -1,20 +1,22 @@ swf.load.complete.config.tables.if.count.less.than=500 swf.user.password.encrypted=false -swf.plugins.background.core.workers.numThreads=1 +swf.plugins.background.core.workers.numThreads=2 swf.application.authentication.required=false -beckn.network.timeout=10000 + +swf.encryption.support=false +swf.key.store.directory=./.keystore +swf.key.store.password=venky12 +swf.key.entry.succinct.password=succinct12 -#swf.host=localhost swf.host=GATEWAY_URL swf.external.port=GATEWAY_PORT swf.external.scheme=PROTOCOL - swf.jdbc.driver=org.h2.Driver -swf.jdbc.url=jdbc:h2:./database/gateway;AUTO_SERVER=TRUE; -swf.jdbc.userid=gateway -swf.jdbc.password=gateway +swf.jdbc.url=jdbc:h2:./database/standalone;AUTO_SERVER=TRUE; +swf.jdbc.userid=standalone +swf.jdbc.password=standalone swf.jdbc.validationQuery=values(1) swf.jdbc.dbschema=PUBLIC swf.jdbc.dbschema.setonconnection=true @@ -31,12 +33,11 @@ swf.jdbc.set.dbschema.command=set schema public ## Beckn Gateway configurations. beckn.auth.enabled=true + in.succinct.beckn.gateway.subscriber_id=SUBSCRIBER_ID in.succinct.beckn.gateway.public_key_id=SUBSCRIBER_ID.k1 -in.succinct.beckn.registry.url=REGISTRY_URL -in.succinct.beckn.registry.signing_public_key=SIGNING_PUBLIC_KEY -in.succinct.beckn.registry.encryption_public_key=ENCRYPTION_PUBLIC_KEY -swf.encryption.support=false -#swf.key.store.directory=./.keystore +in.succinct.onet.country.iso.3=IND +in.succinct.onet.country.iso.2=IN +in.succinct.onet.name=onix \ No newline at end of file diff --git a/install/registry_data/config/swf.properties-sample b/install/registry_data/config/swf.properties-sample index 7049488..3e2b112 100644 --- a/install/registry_data/config/swf.properties-sample +++ b/install/registry_data/config/swf.properties-sample @@ -1,6 +1,6 @@ swf.load.complete.config.tables.if.count.less.than=500 swf.user.password.encrypted=false -swf.plugins.background.core.workers.numThreads=1 +swf.plugins.background.core.workers.numThreads=3 swf.application.authentication.required=false @@ -31,9 +31,14 @@ swf.jdbc.set.dbschema.command=set schema public swf.api.keys.case=SNAKE swf.api.root.required=false -swf.encryption.support=false -#swf.key.store.directory=./.keystore - # Needed for Google Login #swf.GOOGLE.client.id= #swf.GOOGLE.client.secret= + +swf.encryption.support=false +## Uncomment below if encryption is needed and set appropriate passwords +#swf.key.store.directory=./.keystore +#swf.key.store.password=venky12 +#swf.key.entry.succinct.password=succinct12 + +swf.ftl.dir=src/main/resources/templates \ No newline at end of file