From 8b65d54c8436bf0375ae2d16bfa3b5ea571ee95d Mon Sep 17 00:00:00 2001 From: Nabarun Date: Sat, 27 Jul 2024 20:59:32 +0530 Subject: [PATCH 1/2] Add sumsub API endpoint in app stack --- .../compose/docker-compose-testnet-onboarding-app.yml | 1 + stack-orchestrator/config/app/onboarding-app-start.sh | 2 ++ stack-orchestrator/stacks/onboarding-app/README.md | 3 +++ 3 files changed, 6 insertions(+) diff --git a/stack-orchestrator/compose/docker-compose-testnet-onboarding-app.yml b/stack-orchestrator/compose/docker-compose-testnet-onboarding-app.yml index 8ef20ea..9e457a3 100644 --- a/stack-orchestrator/compose/docker-compose-testnet-onboarding-app.yml +++ b/stack-orchestrator/compose/docker-compose-testnet-onboarding-app.yml @@ -12,6 +12,7 @@ services: CERC_LACONICD_DENOM: ${CERC_LACONICD_DENOM:-photon} CERC_FAUCET_ENDPOINT: ${CERC_FAUCET_ENDPOINT:-http://localhost:4000} CERC_WALLET_META_URL: ${CERC_WALLET_META_URL:-http://localhost:3000} + CERC_SUMSUB_API_ENDPOINT: ${CERC_SUMSUB_API_ENDPOINT:-http://localhost:3001} command: ["bash", "/scripts/onboarding-app-start.sh"] volumes: - ../config/app/onboarding-app-start.sh:/scripts/onboarding-app-start.sh diff --git a/stack-orchestrator/config/app/onboarding-app-start.sh b/stack-orchestrator/config/app/onboarding-app-start.sh index 09ff96c..a1dffdd 100755 --- a/stack-orchestrator/config/app/onboarding-app-start.sh +++ b/stack-orchestrator/config/app/onboarding-app-start.sh @@ -13,6 +13,7 @@ echo "CERC_LACONICD_RPC_ENDPOINT: ${CERC_LACONICD_RPC_ENDPOINT}" echo "CERC_LACONICD_DENOM: ${CERC_LACONICD_DENOM}" echo "CERC_FAUCET_ENDPOINT: ${CERC_FAUCET_ENDPOINT}" echo "CERC_WALLET_META_URL: ${CERC_WALLET_META_URL}" +echo "CERC_SUMSUB_API_ENDPOINT: ${CERC_SUMSUB_API_ENDPOINT}" # Build with required env REACT_APP_WALLET_CONNECT_ID=$WALLET_CONNECT_ID \ @@ -23,6 +24,7 @@ REACT_APP_LACONICD_RPC_ENDPOINT=$CERC_LACONICD_RPC_ENDPOINT \ REACT_APP_LACONICD_DENOM=$CERC_LACONICD_DENOM \ REACT_APP_FAUCET_ENDPOINT=$CERC_FAUCET_ENDPOINT \ REACT_APP_WALLET_META_URL=$CERC_WALLET_META_URL \ +REACT_APP_SUMSUB_API_ENDPOINT=$CERC_SUMSUB_API_ENDPOINT yarn build http-server -p 80 /app/build diff --git a/stack-orchestrator/stacks/onboarding-app/README.md b/stack-orchestrator/stacks/onboarding-app/README.md index 9928880..fcce68c 100644 --- a/stack-orchestrator/stacks/onboarding-app/README.md +++ b/stack-orchestrator/stacks/onboarding-app/README.md @@ -74,6 +74,9 @@ Instructions for running the `testnet-onboarding-app` using [laconic-so](https:/ # laconic wallet meta URL (default: http://localhost:3000) CERC_WALLET_META_URL= + + # Onboarding API endpoint (default: http://localhost:3001) + CERC_SUMSUB_API_ENDPOINT= ``` ## Start the deployment -- 2.45.2 From 4e5dac259e7ee0338d34dac8806b4b4be260650b Mon Sep 17 00:00:00 2001 From: Nabarun Date: Sat, 27 Jul 2024 21:00:33 +0530 Subject: [PATCH 2/2] Fix app start script --- stack-orchestrator/config/app/onboarding-app-start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stack-orchestrator/config/app/onboarding-app-start.sh b/stack-orchestrator/config/app/onboarding-app-start.sh index a1dffdd..d726376 100755 --- a/stack-orchestrator/config/app/onboarding-app-start.sh +++ b/stack-orchestrator/config/app/onboarding-app-start.sh @@ -24,7 +24,7 @@ REACT_APP_LACONICD_RPC_ENDPOINT=$CERC_LACONICD_RPC_ENDPOINT \ REACT_APP_LACONICD_DENOM=$CERC_LACONICD_DENOM \ REACT_APP_FAUCET_ENDPOINT=$CERC_FAUCET_ENDPOINT \ REACT_APP_WALLET_META_URL=$CERC_WALLET_META_URL \ -REACT_APP_SUMSUB_API_ENDPOINT=$CERC_SUMSUB_API_ENDPOINT +REACT_APP_SUMSUB_API_ENDPOINT=$CERC_SUMSUB_API_ENDPOINT \ yarn build http-server -p 80 /app/build -- 2.45.2