[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-deployment] 01/03: generate configuration for sync
From: |
gnunet |
Subject: |
[taler-deployment] 01/03: generate configuration for sync |
Date: |
Sun, 01 Dec 2019 20:36:35 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository deployment.
commit f3469785a187c04430019ee7b4f7c5c925a86dbb
Author: Christian Grothoff <address@hidden>
AuthorDate: Sun Dec 1 18:39:55 2019 +0100
generate configuration for sync
---
config/generate-config | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/config/generate-config b/config/generate-config
index 4230bbe..f52ab39 100755
--- a/config/generate-config
+++ b/config/generate-config
@@ -15,7 +15,7 @@ class ConfigFile:
self.currency = currency
self.twisted = twisted
self.exchange_pub = exchange_pub
-
+
def destroy(self):
del self.sections
self.sections = OrderedDict()
@@ -25,7 +25,7 @@ class ConfigFile:
s[key] = value
def cfg_write(self, outdir):
-
+
if outdir:
fstream = open(os.path.join(outdir, self.filename), "w")
else:
@@ -115,7 +115,7 @@ def config(obj):
obj.cfg_put("blog", "instance", "FSF")
obj.cfg_put("backoffice-all", "backend",
"https://backend.{}.taler.net/".format(obj.envname))
-
+
# Keep only one back-office service for all instances, for simplicity.
obj.cfg_put("backoffice-all", "uwsgi_serve", "unix")
obj.cfg_put("backoffice-all", "uwsgi_unixpath_mode", "660")
@@ -286,6 +286,10 @@ def main(currency, envname, outdir, exchange_pub, twisted):
config(mc)
config_files.append(mc)
+ sc = ConfigFile(envname, currency, exchange_pub, twisted, "sync.conf")
+ sc.cfg_put("sync", "annual_fee", sc.currency+":0.1")
+ config_files.append(sc)
+
if "demo" != envname and twisted:
# Twisting the exchange.
--
To stop receiving notification emails like this one, please contact
address@hidden.