updated unique key value
This commit is contained in:
@@ -91,12 +91,14 @@ export async function POST(req) {
|
|||||||
const data = await req.json();
|
const data = await req.json();
|
||||||
|
|
||||||
const registryUrl = data.registryUrl;
|
const registryUrl = data.registryUrl;
|
||||||
const bppSubscriberId = data.subscriberId;
|
const bapSubscriberId = data.subscriberId;
|
||||||
const bppSubscriberUrl = data.subscriberUrl;
|
const bapSubscriberUrl = data.subscriberUrl;
|
||||||
const networkconfigurl = data.networkconfigurl;
|
const networkconfigurl = data.networkconfigurl;
|
||||||
|
// generating unqiuekey for bap subscriberId
|
||||||
|
const uniqueKeyId = bapSubscriberId + "-key";
|
||||||
|
|
||||||
let updateBppConfigCommand = `bash ${pathDir}/install/scripts/update_bap_config.sh ${registryUrl} ${bppSubscriberId} ${bppSubscriberUrl} ${networkconfigurl}`;
|
let updateBapConfigCommand = `bash ${pathDir}/install/scripts/update_bap_config.sh ${registryUrl} ${bapSubscriberId} ${uniqueKeyId} ${bapSubscriberUrl} ${networkconfigurl}`;
|
||||||
const result1 = await executeCommand(updateBppConfigCommand);
|
const result1 = await executeCommand(updateBapConfigCommand);
|
||||||
console.log("Result 1:", result1);
|
console.log("Result 1:", result1);
|
||||||
const result3 = await executeCommand(
|
const result3 = await executeCommand(
|
||||||
`docker-compose -f ${pathDir}/install/docker-compose-v2.yml up -d "bap-client"`
|
`docker-compose -f ${pathDir}/install/docker-compose-v2.yml up -d "bap-client"`
|
||||||
|
|||||||
@@ -89,18 +89,15 @@ export async function POST(req, res) {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await startSupportServices();
|
await startSupportServices();
|
||||||
const data = req.json();
|
const data = await req.json();
|
||||||
const registryUrl = data.registryUrl;
|
const registryUrl = data.registryUrl;
|
||||||
const bppSubscriberId = data.subscriberId;
|
const bppSubscriberId = data.subscriberId;
|
||||||
const bppSubscriberUrl = data.subscriberUrl;
|
const bppSubscriberUrl = data.subscriberUrl;
|
||||||
const webhookUrl = data.webhookUrl;
|
const webhookUrl = data.webhookUrl;
|
||||||
// const webhookUrl = "https://unified-bpp.becknprotocol.io/beckn-bpp-adapter";
|
// generating unqiuekey for bpp subscriberId
|
||||||
|
const uniqueKeyId = bppSubscriberId + "-key";
|
||||||
// let updateBppConfigCommand = "bash scripts/update_bpp_config.sh";
|
let updateBppConfigCommand = `bash ${pathDir}/install/scripts/update_bpp_config.sh ${registryUrl} ${bppSubscriberId} ${uniqueKeyId} ${bppSubscriberUrl} ${webhookUrl}`;
|
||||||
// if (registryUrl) {
|
console.log("Update BPP Config Command:", updateBppConfigCommand);
|
||||||
// updateBppConfigCommand += ``;
|
|
||||||
// }
|
|
||||||
let updateBppConfigCommand = `bash ${pathDir}/install/scripts/update_bpp_config.sh ${registryUrl} ${bppSubscriberId} ${bppSubscriberUrl} ${webhookUrl}`;
|
|
||||||
const result1 = await executeCommand(updateBppConfigCommand);
|
const result1 = await executeCommand(updateBppConfigCommand);
|
||||||
console.log("Result 1:", result1);
|
console.log("Result 1:", result1);
|
||||||
|
|
||||||
|
|||||||
4
onix-gui/GUI/next.config.mjs
Normal file
4
onix-gui/GUI/next.config.mjs
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
/** @type {import('next').NextConfig} */
|
||||||
|
const nextConfig = {};
|
||||||
|
|
||||||
|
export default nextConfig;
|
||||||
Reference in New Issue
Block a user