commit af3a5e50d7d25011db76c5a2e694577217841a94
parent 66db2da95f1d2614d515708f8ef318bef1d263a5
Author: Sebastian <sebasjm@gmail.com>
Date: Mon, 27 Nov 2023 09:25:52 -0300
settings example
Diffstat:
2 files changed, 34 insertions(+), 8 deletions(-)
diff --git a/debian/etc/libeufin/settings.js b/debian/etc/libeufin/settings.js
@@ -1,8 +0,0 @@
-globalThis.talerDemobankSettings = {
- // Only Admin adds users
- allowRegistrations: false,
- bankName: "Taler Bank",
- // Show explainer text and navbar to other demo sites
- showDemoNav: false,
- backendBaseURL: "http://localhost/"
-};
diff --git a/debian/etc/libeufin/settings.json b/debian/etc/libeufin/settings.json
@@ -0,0 +1,34 @@
+// This file is an example of configuration of Bank SPA
+// Remove all the comments to make the file a valid
+// JSON file, otherwise no value here will make any
+// effect.
+// All the settings are optionals.
+{
+ // Where libeufin backend is localted
+ // default: window.origin without "webui/"
+ "backendBaseURL": "http://bank.taler.test:1180/",
+ // Shows a button "create random account" in the registration form
+ // Useful for testing
+ // default: false
+ "allowRandomAccountCreation": false,
+ // Create all random accounts with password "123"
+ // Useful for testing
+ // default: false
+ "simplePasswordForRandomAccounts": false,
+ // Bank name shown in the header
+ // default: "Taler Bank"
+ "bankName": "Taler TESTING Bank",
+ // URL where the user is going to be redirected after
+ // clicking in Taler Logo
+ // default: home page
+ "iconLinkURL": "#",
+ // Mapping for every link shown in the top navitation bar
+ // - key: link label, what the user will read
+ // - value: link target, where the user is going to be redirected
+ // default: empty list
+ "topNavSites": {
+ "Exchange": "http://Exchnage.taler.test:1180/",
+ "Bank": "http://bank-ui.taler.test:1180/",
+ "Merchant": "http://merchant.taler.test:1180/"
+ }
+}