gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-deployment] branch master updated: drafting TypeScript demo confi


From: gnunet
Subject: [taler-deployment] branch master updated: drafting TypeScript demo config
Date: Wed, 16 Nov 2022 14:35:44 +0100

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 0dacdcf  drafting TypeScript demo config
0dacdcf is described below

commit 0dacdcf8c38dcc0173277b5169e2649d386ce4bc
Author: MS <ms@taler.net>
AuthorDate: Wed Nov 16 14:35:15 2022 +0100

    drafting TypeScript demo config
---
 docker/demo/config/deployment.ts | 61 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)

diff --git a/docker/demo/config/deployment.ts b/docker/demo/config/deployment.ts
new file mode 100644
index 0000000..fc4f22c
--- /dev/null
+++ b/docker/demo/config/deployment.ts
@@ -0,0 +1,61 @@
+/**
+ * Not belonging here: ports to expose when
+ * starting the services and Git tags.
+ */
+
+interface BankAccount {
+  username: string;
+  password: string;
+}
+
+interface NexusAccount {
+  username: string;
+  password: string;
+}
+
+class ApiKey {
+  apikey: string;
+  constructor(apikey: string) {
+    if (!apikey.startsWith("secret-token:")) {
+      throw Error("Given API key lacks leading 'secret-token:' part.")    
+    }
+    this.apikey = apikey;
+  }
+}
+
+interface TalerConfigUrls {
+  merchantUrl: URL;
+  landingUrl: URL;
+  blogUrl: URL;
+  donationsUrl: URL;
+  surveyUrl: URL;
+  syncUrl: URL;
+  // was bank-url in INI config:
+  bankSandboxUrl: URL;
+  // was default-exchange in INI config:
+  exchangeUrl: URL;
+}
+
+interface TalerConfigSecrets {
+  merchantApiKey: ApiKey;
+  dbPassword: string;
+}
+
+interface TalerConfigBankAccounts {
+  exchange: BankAccount;
+  blog: BankAccount;
+  pos: BankAccount;
+  gnunet: BankAccount;
+  taler: BankAccount;
+  tor: BankAccount;
+  survey: BankAccount;
+  defaultMerchantInstance: BankAccount;
+}
+
+interface TalerConfig {
+  currency: string;
+  urls: TalerConfigUrls;
+  secrets: TalerConfigSecrets;
+  bankAccounts: TalerConfigBankAccounts;
+  exchangeNexusAccount: NexusAccount;
+}

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]