summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-10-17 10:13:29 +0200
committerFlorian Dold <florian@dold.me>2023-10-17 10:13:29 +0200
commit07c24bba0a6738d4c786dddbe6fbb9041eed812f (patch)
tree1bcc368d2b22fd5b6c59068b49e4879e48ea0292
parentd08bbc3c35ac8d9dbd67daf1c49b5c03dcbfae43 (diff)
downloaddeployment-07c24bba0a6738d4c786dddbe6fbb9041eed812f.tar.gz
deployment-07c24bba0a6738d4c786dddbe6fbb9041eed812f.tar.bz2
deployment-07c24bba0a6738d4c786dddbe6fbb9041eed812f.zip
WIP
-rw-r--r--sandcastle-ng/README.md1
-rwxr-xr-xsandcastle-ng/scripts/setup-sandcastle.sh22
2 files changed, 22 insertions, 1 deletions
diff --git a/sandcastle-ng/README.md b/sandcastle-ng/README.md
index ba15740..cb4b64f 100644
--- a/sandcastle-ng/README.md
+++ b/sandcastle-ng/README.md
@@ -101,6 +101,7 @@ You can always manually run the script inside the container as ``/scripts/setup-
* The Dockerfile should introduce nightly tags for debian packages it builds.
Currently it just uses the latest defined version, which is confusing.
+* We don't cache the exchange ToS between startups, that's slow.
* Do self-tests of the deployment using the wallet CLI
* Running the auditor
* Running a currency conversion setup with multiple libeufin-bank instances
diff --git a/sandcastle-ng/scripts/setup-sandcastle.sh b/sandcastle-ng/scripts/setup-sandcastle.sh
index 39e30c4..c351bb8 100755
--- a/sandcastle-ng/scripts/setup-sandcastle.sh
+++ b/sandcastle-ng/scripts/setup-sandcastle.sh
@@ -86,6 +86,7 @@ lift_dir /var/lib/taler var-lib-taler
lift_dir /etc/taler etc-taler
lift_dir /etc/libeufin-bank etc-libeufin-bank
lift_dir /var/lib/postgresql var-lib-postgresql
+lift_dir /usr/share/taler/terms usr-share-taler-terms
# Caddy configuration.
# We use the caddy reverse proxy with automatic
@@ -129,6 +130,7 @@ https://$MERCHANT_DOMAIN {
:$PORT_INTERNAL_BANK_SPA {
root * /usr/share/libeufin-bank/spa
+ root /demobank-ui-settings.js /etc/libeufin-bank/
file_server
}
EOF
@@ -161,9 +163,27 @@ sudo -i -u postgres createdb -O libeufin-bank $BANK_DB || true
sudo -i -u libeufin-bank libeufin-bank dbinit
+
+cat <<EOF >/etc/libeufin-bank/demobank-ui-settings.js
+globalThis.talerDemobankSettings = {
+ // Only Admin adds users
+ allowRegistrations: false,
+ bankName: "Taler Bank",
+ // Show explainer text and navbar to other demo sites
+ showDemoNav: false,
+ demoSites: [
+ ["Landing", "https://$LANDING_DOMAIN/"],
+ ["Bank", "https://$BANK_DOMAIN/"],
+ ["Essay Shop", "https://$BLOG_DOMAIN/"],
+ ["Donations", "https://$DONATIONS_DOMAIN/"],
+ ["Survey", "https://$SURVEY_DOMAIN/"],
+ ],
+ backendBaseURL: "https://$BANK_DOMAIN/",
+};
+EOF
+
systemctl start libeufin-bank.service
-# TODO: Wait until service is up and running
# TODO: Create accounts for exchange and merchants
taler-harness deployment wait-taler-service libeufin-bank https://$BANK_DOMAIN/config