gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] branch master updated: debian package fixes


From: gnunet
Subject: [taler-exchange] branch master updated: debian package fixes
Date: Sat, 02 Jan 2021 14:05:47 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 0e4c82f8 debian package fixes
0e4c82f8 is described below

commit 0e4c82f89738dd4fd0d862d06ae71452722fbb5e
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sat Jan 2 14:05:45 2021 +0100

    debian package fixes
---
 debian/etc/taler-exchange-db.conf | 11 +++++++++++
 debian/etc/taler-exchange.conf    | 18 ++++++++++++++++++
 debian/etc/taler-wire.conf        | 10 ++++++++++
 debian/taler-exchange.postinst    |  7 +++++++
 4 files changed, 46 insertions(+)

diff --git a/debian/etc/taler-exchange-db.conf 
b/debian/etc/taler-exchange-db.conf
new file mode 100644
index 00000000..a6217f48
--- /dev/null
+++ b/debian/etc/taler-exchange-db.conf
@@ -0,0 +1,11 @@
+# This file should contain the access control information to talk to
+# the exchange database.
+
+[exchangedb-postgres]
+
+# Typically, there should only be a single line here, of the form:
+
+# CONFIG=postgres:///DATABASE
+
+# The details of the URI depend on where the database lives and how
+# access control was configured.
diff --git a/debian/etc/taler-exchange.conf b/debian/etc/taler-exchange.conf
index 2b304aed..b9eba165 100644
--- a/debian/etc/taler-exchange.conf
+++ b/debian/etc/taler-exchange.conf
@@ -1,3 +1,9 @@
+# First line should be: "INLINE@ /etc/taler-exchange-db.conf"
+@INLINE@ /etc/taler-exchange-db.conf
+# Do not edit this file using 'taler-config', otherwise the line
+# above will be lost!
+
+
 [PATHS]
 
 # Move runtime data "tmp" directory to /var/lib/taler-exchange/
@@ -5,6 +11,18 @@
 TALER_RUNTIME_DIR = /var/lib/taler-exchange/tmp/
 
 [exchange]
+# Debian package is configured to use a reverse proxy with a UNIX
+# domain socket. See nginx/apache configuration files.
 SERVE = UNIX
 UNIXPATH = /var/lib/taler-exchange/exchange.sock
+
+# Only supported database is Postgres right now.
 DATABASE = postgres
+
+[taler]
+# Here you need to set the currency of your exchange:
+# CURRENCY = KUDOS
+
+[coin_FOO]
+# You must specify the various denominations to be offered by your exchange
+# in sections called "coin_".
diff --git a/debian/etc/taler-wire.conf b/debian/etc/taler-wire.conf
index e69de29b..02c5993f 100644
--- a/debian/etc/taler-wire.conf
+++ b/debian/etc/taler-wire.conf
@@ -0,0 +1,10 @@
+# First line should be: "INLINE@ /etc/taler-exchange-db.conf"
+@INLINE@ /etc/taler-exchange-db.conf
+# Do not edit this file using 'taler-config', otherwise the line
+# above will be lost!
+
+
+# This file should contain the wire account access information which is needed
+# by the Taler exchange to talk to LibEuFin to interact with the bank.
+# The file SHOULD only be readable for the "taler-exchange-wire" user,
+# as other users/services have no business talking to the bank.
diff --git a/debian/taler-exchange.postinst b/debian/taler-exchange.postinst
index e2b2ab31..3ef46bf2 100644
--- a/debian/taler-exchange.postinst
+++ b/debian/taler-exchange.postinst
@@ -211,6 +211,13 @@ EOF
         chmod 770 /var/lib/taler-exchange/tmp
         chmod +s /var/lib/taler-exchange/tmp
 
+        chown ${_WIREUSERNAME}:root /etc/taler-wire.conf
+        chmod 460 /etc/taler-wire.conf
+        chown root:${_DBGROUPNAME} /etc/taler-exchange-db.conf
+        chmod 640 /etc/taler-exchange-db.conf
+        chown ${_EUSERNAME}:${_GROUPNAME} /etc/taler-exchange.conf
+        chmod 460 /etc/taler-wire.conf
+
         systemctl daemon-reload
 
         echo "done."

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]