taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

commit 6d7a1b930a6fbd4ad4a15d70053aa1f25099e078
parent 1f8c91dc662fd579faffc12b3f95ee3ff592abfa
Author: Javier Sepulveda <javier.sepulveda@uv.es>
Date:   Thu,  2 Mar 2023 14:21:05 +0100

working skeleton, except for libeufin integration

Diffstat:
Anetzbon/netzbon.sh | 72++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 72 insertions(+), 0 deletions(-)

diff --git a/netzbon/netzbon.sh b/netzbon/netzbon.sh @@ -0,0 +1,72 @@ +#!/bin/bash + +apt update +apt install wget -y + +# Add taler repo +echo "deb [signed-by=/etc/apt/keyrings/taler-systems.gpg] https://deb.taler.net/apt/debian stable main" > /etc/apt/sources.list.d/taler.list + +wget -P /etc/apt/keyrings/ https://taler.net/taler-systems.gpg + +# Install dependencies + +apt install taler postgresql nginx -y + +# Create, fill and load config file + +# touch deployment.conf + +# echo "CUSTOM_PASSWORD=....." > deployment.conf +# echo "NEXT_VARIABLE=..." >> deployment.conf + +# source deployment.conf + +# DATABASE + +# DB Merchant, configuration + +# We can avoid this instruction, if "taler-mechant" refers to +# database "postgres" instead of "pgsql" + +su -lc "createdb pgsql" postgres + + +# DB Exchange, configuration + +# echo "CREATE USER taler" | psql -U postgres +# echo "CREATE DATABASE taler_db" | psql -U taler +# echo "ALTER ROLE taler WITH PASSWORD ${CUSTOM_PASSWORD}" | psql -U taler + +# echo "ALTER SYSTEM SET logging_collector TO 'true';" | psql -U postgres +# echo "ALTER SYSTEM SET log_directory TO '/logs';" | psql -U postgres +# echo "ALTER SYSTEM SET log_filename TO 'postgres-%Y-%m-%d.log';" | psql -U postgres + +# pg_ctl restart + +# END DATABASE configuration + +# EXCHANGE + +apt install taler-exchange -y + +# MERCHANT + +apt install taler-merchant -y + +# LIBEUFIN + +apt install libeufin -y + +systemctl enable --now libeufin-sandbox +systemctl enable --now libeufin-nexus + + +# NGINX configuration + +ln -s /etc/nginx/sites-available/taler-merchant /etc/nginx/sites-enabled/taler-merchant.conf +ln -s /etc/nginx/sites-available/taler-exchange /etc/nginx/sites-enabled/taler-exchange.conf + +systemctl reload nginx + +echo "Congratulations, you have successfully installed GNU Taler" +echo "Please check your browser now at http://localhost:80"