diff options
author | Slack Coder <slackcoder@server.ky> | 2023-11-29 10:35:20 -0500 |
---|---|---|
committer | Slack Coder <slackcoder@server.ky> | 2024-03-12 16:38:56 -0500 |
commit | b9eaaf853abd4250a6bc424914dae5189bc23de6 (patch) | |
tree | 873ca2d04e4c7f5516876822dafd0f0b38b01f5b /libeufin/root | |
parent | d978a115ef800c22e5cc1a30d075b26c896cabad (diff) | |
download | slackbuilds-b9eaaf853abd4250a6bc424914dae5189bc23de6.tar.xz |
Add GNU Taler
Add the following packages and dependencies to build them from their git
source repositories.
- taler-exchange
- taler-merchant
- libeufin
Diffstat (limited to 'libeufin/root')
-rw-r--r-- | libeufin/root/etc/httpd/sites-available/libeufin-bank.conf.new | 6 | ||||
-rw-r--r-- | libeufin/root/etc/libeufin/libeufin-bank.conf.new | 34 | ||||
-rw-r--r-- | libeufin/root/etc/libeufin/settings.json.new | 34 | ||||
-rw-r--r-- | libeufin/root/etc/rc.d/rc.libeufin-bank.new | 54 |
4 files changed, 128 insertions, 0 deletions
diff --git a/libeufin/root/etc/httpd/sites-available/libeufin-bank.conf.new b/libeufin/root/etc/httpd/sites-available/libeufin-bank.conf.new new file mode 100644 index 0000000..02bab73 --- /dev/null +++ b/libeufin/root/etc/httpd/sites-available/libeufin-bank.conf.new @@ -0,0 +1,6 @@ +<Location "/libeufin-bank/"> + ProxyPass "http://localhost:9099/" + # RequestHeader add "X-Forwarded-Proto" "https" + # RequestHeader add "X-Forwarded-Host" "localhost" + # RequestHeader add "X-Forwarded-Prefix" "/" +</Location> diff --git a/libeufin/root/etc/libeufin/libeufin-bank.conf.new b/libeufin/root/etc/libeufin/libeufin-bank.conf.new new file mode 100644 index 0000000..9c2fb32 --- /dev/null +++ b/libeufin/root/etc/libeufin/libeufin-bank.conf.new @@ -0,0 +1,34 @@ +# This is the main configuration entrypoint for the libeufin-bank. + +[libeufin-bank] + +# Internal currency of the libeufin-bank +CURRENCY = KUDOS + +# Default debt limit for newly created accounts +# DEFAULT_DEBT_LIMIT = KUDOS:0 + +# Value of the registration bonus for new users +# REGISTRATION_BONUS = KUDOS:0 + +# Allow account registration by anyone +# ALLOW_REGISTRATION = no + +# Allow an account to delete itself +# ALLOW_ACCOUNT_DELETION = no + +# Enable regional currency conversion +# ALLOW_CONVERSION = no + +# Path to TAN challenge transmission script via sms. If not specified, this TAN channel wil be unuspported. +TAN_SMS = + +# Path to TAN challenge transmission script via email. If not specified, this TAN channel wil be unuspported. +TAN_EMAIL = + +# Where "libeufin-bank serve" serves its API +SERVE = tcp +PORT = 9099 + +[libeufin-bankdb-postgres] +CONFIG = postgres:///libeufin-bank diff --git a/libeufin/root/etc/libeufin/settings.json.new b/libeufin/root/etc/libeufin/settings.json.new new file mode 100644 index 0000000..73ca45d --- /dev/null +++ b/libeufin/root/etc/libeufin/settings.json.new @@ -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/" + } +} diff --git a/libeufin/root/etc/rc.d/rc.libeufin-bank.new b/libeufin/root/etc/rc.d/rc.libeufin-bank.new new file mode 100644 index 0000000..d3ba3e1 --- /dev/null +++ b/libeufin/root/etc/rc.d/rc.libeufin-bank.new @@ -0,0 +1,54 @@ +#!/bin/sh +# +# Startup/shutdown script for GNU Taler's libeufin bank. +# + +export USERPROFILE=/var/lib/libeufin + +create_run_dir() { + if [ ! -d /run/libeufin-bank/ ]; then + mkdir -p /run/libeufin-bank + chown libeufin-bank:libeufin-bank /run/libeufin-bank + chmod g+wX /run/libeufin-bank + fi +} + +start() { + echo "Starting Libeufin Bank" + create_run_dir + + daemon \ + --name=libeufin-bank \ + --user=libeufin-bank \ + --pidfiles=/run/libeufin-bank \ + --output=/var/log/taler/libeufin-bank.log \ + -- libeufin-bank serve --config /etc/libeufin/libeufin-bank.conf +} + +stop() { + echo "Stopping Libeufin Bank" + /usr/bin/daemon --name=libeufin-bank --pidfiles=/run/libeufin-bank --stop +} + +status() { + /usr/bin/daemon --name=libeufin-bank --pidfiles=/run/libeufin-bank --running --verbose +} + +case "$1" in +start) + start + ;; +stop) + stop + ;; +status) + status + ;; +*) + echo "Usage: $0 {start|stop|status}" + exit 1 +esac + + + + |