summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-01-05 12:22:02 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2018-01-05 12:22:02 +0100
commitf1e6b4f3fcc6e87d4dfae684f0ef3a1e4b3f2514 (patch)
tree281cd117f7109a1c8306925607dd51224bd42b24 /config
parent2b9ae606159f997e3e073adffdfc365402361923 (diff)
downloaddeployment-f1e6b4f3fcc6e87d4dfae684f0ef3a1e4b3f2514.tar.gz
deployment-f1e6b4f3fcc6e87d4dfae684f0ef3a1e4b3f2514.tar.bz2
deployment-f1e6b4f3fcc6e87d4dfae684f0ef3a1e4b3f2514.zip
adding config sections for backoffice
Diffstat (limited to 'config')
-rwxr-xr-xconfig/generate-config17
1 files changed, 17 insertions, 0 deletions
diff --git a/config/generate-config b/config/generate-config
index 9ef7d50..d4d5a56 100755
--- a/config/generate-config
+++ b/config/generate-config
@@ -71,6 +71,11 @@ def config(currency, envname, exchange_pub, standalone):
cfg_put("donations", "uwsgi_unixpath", "$HOME/sockets/donations.uwsgi")
cfg_put("donations", "uwsgi_unixpath_mode", "660")
+ cfg_put("backoffice-donations", "instances", "FSF GNUnet Tor Taler")
+ cfg_put("backoffice-donations", "uwsgi_serve", "unix")
+ cfg_put("backoffice-donations", "uwsgi_unixpath", "$HOME/sockets/backoffice-donations.uwsgi")
+ cfg_put("backoffice-donations", "uwsgi_unixpath_mode", "660")
+
cfg_put("survey", "uwsgi_serve", "unix")
cfg_put("survey", "uwsgi_unixpath", "$HOME/sockets/survey.uwsgi")
cfg_put("survey", "uwsgi_unixpath_mode", "660")
@@ -80,6 +85,18 @@ def config(currency, envname, exchange_pub, standalone):
cfg_put("blog", "uwsgi_unixpath_mode", "660")
cfg_put("blog", "instance", "FSF")
+ cfg_put("backoffice-blog", "instances", "FSF")
+ cfg_put("backoffice-blog", "uwsgi_serve", "unix")
+ cfg_put("backoffice-blog", "uwsgi_unixpath", "$HOME/sockets/backoffice-blog.uwsgi")
+ cfg_put("backoffice-blog", "uwsgi_unixpath_mode", "660")
+
+ if standalone:
+ cfg_put("backoffice-blog", "backend", "https://env.taler.net/{}/merchant-backend/".format(envname))
+ cfg_put("backoffice-donations", "backend", "https://env.taler.net/{}/merchant-backend/".format(envname))
+ else:
+ cfg_put("backoffice-blog", "backend", "https://shop.{}.taler.net/backend/".format(envname))
+ cfg_put("backoffice-donations", "backend", "https://shop.{}.taler.net/backend/".format(envname))
+
cfg_put("merchant", "wireformat", "test")
cfg_put("merchant", "serve", "unix")
cfg_put("merchant", "unixpath", "$HOME/sockets/merchant.http")