[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-deployment] branch master updated: propagating the API token into
From: |
gnunet |
Subject: |
[taler-deployment] branch master updated: propagating the API token into the configuration |
Date: |
Wed, 28 Apr 2021 11:14:59 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository deployment.
The following commit(s) were added to refs/heads/master by this push:
new f3b9f3f propagating the API token into the configuration
f3b9f3f is described below
commit f3b9f3f2d4addf0fa0f23f1f1b29c57b28a8c074
Author: MS <ms@taler.net>
AuthorDate: Wed Apr 28 11:14:55 2021 +0200
propagating the API token into the configuration
---
bin/taler-deployment-config-generate | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/bin/taler-deployment-config-generate
b/bin/taler-deployment-config-generate
index fdba35f..3f97fe7 100755
--- a/bin/taler-deployment-config-generate
+++ b/bin/taler-deployment-config-generate
@@ -135,7 +135,6 @@ def config(obj):
"merchantdb-postgres", "config",
"postgres:///taler{}".format(obj.envname)
)
- obj.cfg_put("frontends", "backend_apikey", "secret-token:sandbox")
obj.cfg_put("frontends", "backend", urls["merchant_backend"])
obj.cfg_put(
@@ -224,9 +223,9 @@ def config(obj):
@click.option("--currency", default="KUDOS")
@click.option("--envname", default="demo")
@click.option("--outdir", required=True)
-# datadir is where all keys / wire-details files / are placed.
@click.option("--exchange-pub", required=True)
-def main(currency, envname, outdir, exchange_pub):
+@click.option("--frontends-apitoken", required=True)
+def main(currency, envname, outdir, exchange_pub, frontends_apitoken):
if envname not in ("tanker", "demo", "test", "int", "euro", "chf",
"local"):
print("envname (%s) not demo/test/int, aborting config generation" %
envname)
@@ -235,6 +234,7 @@ def main(currency, envname, outdir, exchange_pub):
config_files = []
mc = ConfigFile(envname, currency, exchange_pub, "taler.conf")
+ mc.cfg_put("frontends", "backend_apikey",
f"secret-token:{frontends_apitoken}")
config(mc)
config_files.append(mc)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-deployment] branch master updated: propagating the API token into the configuration,
gnunet <=