summaryrefslogtreecommitdiff
path: root/config/generate-config
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-12-01 18:39:55 +0100
committerChristian Grothoff <christian@grothoff.org>2019-12-01 18:39:55 +0100
commitf3469785a187c04430019ee7b4f7c5c925a86dbb (patch)
tree48612f94ffb17cd61b93c20fb7785ab7ede27fb2 /config/generate-config
parent369bf4ead8bc0c9fe3a7ecf2f08ea5db15a73ea2 (diff)
downloaddeployment-f3469785a187c04430019ee7b4f7c5c925a86dbb.tar.gz
deployment-f3469785a187c04430019ee7b4f7c5c925a86dbb.tar.bz2
deployment-f3469785a187c04430019ee7b4f7c5c925a86dbb.zip
generate configuration for sync
Diffstat (limited to 'config/generate-config')
-rwxr-xr-xconfig/generate-config10
1 files 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.