From b5cba3251053c22bf1df46282f1dd0a4c46f6a38 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 1 Mar 2016 15:35:04 +0100 Subject: renaming mint->exchange --- .../exchange-template/config/exchange-common.conf | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 contrib/exchange-template/config/exchange-common.conf (limited to 'contrib/exchange-template/config/exchange-common.conf') diff --git a/contrib/exchange-template/config/exchange-common.conf b/contrib/exchange-template/config/exchange-common.conf new file mode 100644 index 000000000..cb34ddcd9 --- /dev/null +++ b/contrib/exchange-template/config/exchange-common.conf @@ -0,0 +1,28 @@ +[exchange] +# Currency supported by the exchange (can only be one) +CURRENCY = EUR + +# Wire format supported by the exchange, case-insensitive. +# Examples for formats include 'test' for testing and 'sepa' (for EU IBAN). +WIREFORMAT = SEPA + +# HTTP port the exchange listens to +PORT = 4241 + +# Master public key used to sign the exchange's various keys +MASTER_PUBLIC_KEY = NEGTF62MNGVPZNW19V7S3CRS9D7K04MAHDGX3N6WY2NXREN26J80 + +# How to access our database +DB = postgres + +TESTRUN = YES + +[exchangedb-postgres] + +DB_CONN_STR = "postgres:///talercheck" + +[exchange-wire-sepa] +SEPA_RESPONSE_FILE = "sepa.json" + +[exchange-wire-test] +REDIRECT_URL = "http://test/" -- cgit v1.2.3 From f746efecf78e06f56ad7193591574d374c19958a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 1 Mar 2016 16:10:41 +0100 Subject: rename section from exchange-wire- to wire- --- contrib/exchange-template/config/exchange-common.conf | 7 ++++--- src/exchange/taler-exchange-httpd_wire.c | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'contrib/exchange-template/config/exchange-common.conf') diff --git a/contrib/exchange-template/config/exchange-common.conf b/contrib/exchange-template/config/exchange-common.conf index cb34ddcd9..5214fd816 100644 --- a/contrib/exchange-template/config/exchange-common.conf +++ b/contrib/exchange-template/config/exchange-common.conf @@ -15,14 +15,15 @@ MASTER_PUBLIC_KEY = NEGTF62MNGVPZNW19V7S3CRS9D7K04MAHDGX3N6WY2NXREN26J80 # How to access our database DB = postgres +# Is this for testing, or for real? TESTRUN = YES [exchangedb-postgres] - DB_CONN_STR = "postgres:///talercheck" -[exchange-wire-sepa] +[wire-sepa] SEPA_RESPONSE_FILE = "sepa.json" -[exchange-wire-test] +[wire-test] REDIRECT_URL = "http://test/" +BANK_URI = "http://bank/ diff --git a/src/exchange/taler-exchange-httpd_wire.c b/src/exchange/taler-exchange-httpd_wire.c index ba763b64d..faf018b99 100644 --- a/src/exchange/taler-exchange-httpd_wire.c +++ b/src/exchange/taler-exchange-httpd_wire.c @@ -104,7 +104,7 @@ TMH_WIRE_handler_wire_test (struct TMH_RequestHandler *rh, } if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_string (cfg, - "exchange-wire-test", + "wire-test", "REDIRECT_URL", &wire_test_redirect)) { @@ -168,7 +168,7 @@ TMH_WIRE_handler_wire_sepa (struct TMH_RequestHandler *rh, /* Fetch reply */ if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_filename (cfg, - "exchange-wire-sepa", + "wire-sepa", "SEPA_RESPONSE_FILE", &sepa_wire_file)) { -- cgit v1.2.3