[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-deployment] branch master updated: Drafting the per-service TypeS
From: |
gnunet |
Subject: |
[taler-deployment] branch master updated: Drafting the per-service TypeScript config. |
Date: |
Thu, 24 Nov 2022 19:37:07 +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 1a300de Drafting the per-service TypeScript config.
1a300de is described below
commit 1a300de277f40e9572a3fcad2e209b1e3ff96c8a
Author: MS <ms@taler.net>
AuthorDate: Thu Nov 24 19:35:39 2022 +0100
Drafting the per-service TypeScript config.
---
docker/demo/config/deployment-per-service.ts | 57 ++++++++++++++++++++++++++++
1 file changed, 57 insertions(+)
diff --git a/docker/demo/config/deployment-per-service.ts
b/docker/demo/config/deployment-per-service.ts
new file mode 100644
index 0000000..cd2eb11
--- /dev/null
+++ b/docker/demo/config/deployment-per-service.ts
@@ -0,0 +1,57 @@
+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 BankAccount {
+ username: string;
+ password: string;
+}
+
+interface NexusAccount {
+ username: string;
+ password: string;
+}
+
+
+// Values (potentially) needed by more than one container.
+interface GlobalConfig {
+ currency: string;
+ dbPassword: string;
+ exchangeBaseUrl: URL; // used by merchant and exchange.
+ exchangeNexusAccount: NexusAccount; // used by libeufin and exchange.
+ bankAccounts: [BankAccount];
+}
+
+interface BankConfig {
+ baseUrl: URL;
+ allowRegistrations: boolean;
+ withSignupBonus: boolean;
+ bankMaxDebt: number;
+ customerMaxDebt: number;
+}
+
+interface BankWebUi {
+ backendUrl: URL;
+}
+
+interface ExchangeConfig {
+ bankAccount: BankAccount;
+}
+
+interface MerchantConfig {
+ baseUrl: URL;
+ instances: [InstanceConfig];
+}
+
+interface InstanceConfig {
+ id: string;
+ url: URL;
+ apikey: ApiKey;
+ bankAccount: BankAccount;
+}
--
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: Drafting the per-service TypeScript config.,
gnunet <=