summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-04-07 09:27:55 +0200
committerChristian Grothoff <christian@grothoff.org>2016-04-07 09:27:55 +0200
commitd28d1e82f3192cae9219ca038f9f0f29aaaaffb2 (patch)
tree0eb73c58c527ab229deea5ccfb0d25b0c973f3fa /src
parentf3819ae60d5055a5560deff835d8a9c8bd6e2324 (diff)
downloadexchange-d28d1e82f3192cae9219ca038f9f0f29aaaaffb2.tar.gz
exchange-d28d1e82f3192cae9219ca038f9f0f29aaaaffb2.tar.bz2
exchange-d28d1e82f3192cae9219ca038f9f0f29aaaaffb2.zip
install configuration template file in share/taler/config.d/
Diffstat (limited to 'src')
-rw-r--r--src/exchange/Makefile.am5
-rw-r--r--src/exchange/exchange.conf38
2 files changed, 43 insertions, 0 deletions
diff --git a/src/exchange/Makefile.am b/src/exchange/Makefile.am
index a7e175929..68689da22 100644
--- a/src/exchange/Makefile.am
+++ b/src/exchange/Makefile.am
@@ -6,6 +6,11 @@ if USE_COVERAGE
XLIB = -lgcov
endif
+pkgcfgdir= $(pkgdatadir)/config.d/
+
+pkgcfg_DATA = \
+ exchange.conf
+
bin_PROGRAMS = \
taler-exchange-aggregator \
taler-exchange-httpd
diff --git a/src/exchange/exchange.conf b/src/exchange/exchange.conf
new file mode 100644
index 000000000..6a4f03ac1
--- /dev/null
+++ b/src/exchange/exchange.conf
@@ -0,0 +1,38 @@
+[exchange]
+# Currency supported by the exchange (can only be one)
+# CURRENCY = EUR
+
+# Wire format supported by the exchange We use 'test' for testing of
+# the actual coin operations.
+WIREFORMAT = test
+
+# HTTP port the exchange listens to
+PORT = 8081
+
+# Master public key used to sign the exchange's various keys
+# MASTER_PUBLIC_KEY = 98NJW3CQHZQGQXTY3K85K531XKPAPAVV4Q5V8PYYRR00NJGZWNVG
+
+# How to access our database
+DB = postgres
+
+# Is this is a testcase, use transient DB actions?
+# TESTRUN = YES
+
+[exchangedb-postgres]
+DB_CONN_STR = "postgres:///taler"
+
+
+[wire-incoming-test]
+# What is the main website of the bank?
+BANK_URI = "http://localhost:8082/"
+# Into which account at the 'bank' should incoming
+# wire transfers be made?
+BANK_ACCOUNT_NUMBER = 2
+
+[wire-outgoing-test]
+# What is the main website of the bank?
+BANK_URI = "http://localhost:8082/"
+
+# From which account at the 'bank' should outgoing
+# wire transfers be made?
+BANK_ACCOUNT_NUMBER = 3