summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-03-07 23:17:39 +0100
committerChristian Grothoff <christian@grothoff.org>2023-03-07 23:17:39 +0100
commitff02fb3cf755b5896c3e5851e83dc6e68eeb3fa0 (patch)
tree8c8f9cd85b2749a21516cbb91c6c8196724d1fdd
parent3ddd5a67c0ce513e0b6f71378e0eb57c57df3eea (diff)
downloaddeployment-ff02fb3cf755b5896c3e5851e83dc6e68eeb3fa0.tar.gz
deployment-ff02fb3cf755b5896c3e5851e83dc6e68eeb3fa0.tar.bz2
deployment-ff02fb3cf755b5896c3e5851e83dc6e68eeb3fa0.zip
set proper protocol for exchange
-rwxr-xr-xnetzbon/config_launch_libeufin.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/netzbon/config_launch_libeufin.sh b/netzbon/config_launch_libeufin.sh
index 3b42f79..7db5ae4 100755
--- a/netzbon/config_launch_libeufin.sh
+++ b/netzbon/config_launch_libeufin.sh
@@ -170,7 +170,13 @@ echo "EXCHANGE_IBAN=\"${EXCHANGE_IBAN}\"" >> ${MY_DIR}/config/internal.conf
echo "EXCHANGE_PAYTO=\"${EXCHANGE_PAYTO}\"" >> ${MY_DIR}/config/internal.conf
say "Setting the default exchange at Sandbox..."
-libeufin-sandbox default-exchange "https://exchange.$DOMAIN_NAME/" $EXCHANGE_PAYTO
+if test ${ENABLE_TLS:-} == "y"
+then
+ PROTO="https"
+else
+ PROTO="http"
+fi
+libeufin-sandbox default-exchange "${PROTO}://exchange.$DOMAIN_NAME/" $EXCHANGE_PAYTO
say "DONE"
export LIBEUFIN_SANDBOX_USERNAME="admin"