taler-deployment

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

commit f3469785a187c04430019ee7b4f7c5c925a86dbb
parent 369bf4ead8bc0c9fe3a7ecf2f08ea5db15a73ea2
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun,  1 Dec 2019 18:39:55 +0100

generate configuration for sync

Diffstat:
Mconfig/generate-config | 10+++++++---
1 file changed, 7 insertions(+), 3 deletions(-)

diff --git 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.