From 15cee7aa1cfa0c2f978a8c77e09984db8d8a95d4 Mon Sep 17 00:00:00 2001 From: liviuancas-elrond Date: Tue, 25 Feb 2025 10:04:03 +0200 Subject: [PATCH] updated entrypoint --- entrypoint.sh | 5 +++++ src/config/config.placeholder.ts | 1 + 2 files changed, 6 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index 0533ff762..967334ae0 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -35,4 +35,9 @@ if [ -n "$START_API_ADDRESS_STOP" ]; then find /usr/share/nginx/html/ -type f -exec sed -i 's|START_API_ADDRESS_STOP|'${START_API_ADDRESS_STOP}'|g' {} + fi +if [ -n "$START_IS_SOVEREIGN_STOP" ]; then + echo "IS Sovereign defined: ${START_IS_SOVEREIGN_STOP}, replacing in config" + find /usr/share/nginx/html/ -type f -exec sed -i 's|START_IS_SOVEREIGN_STOP|'${START_IS_SOVEREIGN_STOP}'|g' {} + +fi + exec nginx -g 'daemon off;' diff --git a/src/config/config.placeholder.ts b/src/config/config.placeholder.ts index 868a610eb..4ffa40280 100644 --- a/src/config/config.placeholder.ts +++ b/src/config/config.placeholder.ts @@ -18,6 +18,7 @@ export const networks: NetworkType[] = [ walletAddress: 'START_WALLET_ADDRESS_STOP', explorerAddress: 'START_EXPLORER_ADDRESS_STOP', nftExplorerAddress: 'START_NFT_EXPLORER_ADDRESS_STOP', + isSovereign: 'START_IS_SOVEREIGN_STOP', apiAddress: 'START_API_ADDRESS_STOP' },