diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-03-07 23:17:39 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-03-07 23:17:39 +0100 |
commit | ff02fb3cf755b5896c3e5851e83dc6e68eeb3fa0 (patch) | |
tree | 8c8f9cd85b2749a21516cbb91c6c8196724d1fdd | |
parent | 3ddd5a67c0ce513e0b6f71378e0eb57c57df3eea (diff) | |
download | deployment-ff02fb3cf755b5896c3e5851e83dc6e68eeb3fa0.tar.gz deployment-ff02fb3cf755b5896c3e5851e83dc6e68eeb3fa0.tar.bz2 deployment-ff02fb3cf755b5896c3e5851e83dc6e68eeb3fa0.zip |
set proper protocol for exchange
-rwxr-xr-x | netzbon/config_launch_libeufin.sh | 8 |
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" |