diff options
Diffstat (limited to 'src/testing/test_anastasis_api.conf')
-rw-r--r-- | src/testing/test_anastasis_api.conf | 264 |
1 files changed, 264 insertions, 0 deletions
diff --git a/src/testing/test_anastasis_api.conf b/src/testing/test_anastasis_api.conf new file mode 100644 index 0000000..bde7ee1 --- /dev/null +++ b/src/testing/test_anastasis_api.conf | |||
@@ -0,0 +1,264 @@ | |||
1 | # This file is in the public domain. | ||
2 | # | ||
3 | [PATHS] | ||
4 | # Persistent data storage for the testcase | ||
5 | TALER_TEST_HOME = test_anastasis_api_home/ | ||
6 | TALER_RUNTIME_DIR = ${TMPDIR:-${TMP:-/tmp}}/${USER:-}/taler-system-runtime/ | ||
7 | |||
8 | # Persistent data storage | ||
9 | TALER_DATA_HOME = $TALER_TEST_HOME/.local/share/taler/ | ||
10 | |||
11 | # Configuration files | ||
12 | TALER_CONFIG_HOME = $TALER_TEST_HOME/.config/taler/ | ||
13 | |||
14 | # Cached data, no big deal if lost | ||
15 | TALER_CACHE_HOME = $TALER_TEST_HOME/.cache/taler/ | ||
16 | |||
17 | [taler] | ||
18 | # What currency do we use? | ||
19 | #currency = EUR | ||
20 | currency = EUR | ||
21 | #CURRENCY_ROUND_UNIT = EUR:0.01 | ||
22 | #CURRENCY_ROUND_UNIT = EUR:0.01 | ||
23 | |||
24 | [taler-helper-crypto-rsa] | ||
25 | # Reduce from 1 year to speed up test | ||
26 | LOOKAHEAD_SIGN = 12 days | ||
27 | |||
28 | [taler-helper-crypto-eddsa] | ||
29 | # Reduce from 1 year to speed up test | ||
30 | LOOKAHEAD_SIGN = 12 days | ||
31 | # Reduce from 12 weeks to ensure we have multiple | ||
32 | DURATION = 7 days | ||
33 | |||
34 | |||
35 | [bank] | ||
36 | HTTP_PORT = 8082 | ||
37 | #BASE_URL = https://bank.test.taler.net/ | ||
38 | |||
39 | ########################################## | ||
40 | # Configuration for Anastasis # | ||
41 | ########################################## | ||
42 | |||
43 | [anastasis] | ||
44 | PORT = 8086 | ||
45 | |||
46 | DB = postgres | ||
47 | |||
48 | BUSINESS_NAME = "Checker's Test Inc." | ||
49 | |||
50 | # Upload limit | ||
51 | UPLOAD_LIMIT_MB = 1 | ||
52 | |||
53 | ANNUAL_POLICY_UPLOAD_LIMIT = 64 | ||
54 | |||
55 | INSURANCE = EUR:0 | ||
56 | |||
57 | SERVER_SALT = salty | ||
58 | |||
59 | # Base URL of anastasis. | ||
60 | # BASE_URL = http://localhost:8086/ | ||
61 | |||
62 | # Where does our payment backend run? Must match PORT under [merchant] | ||
63 | PAYMENT_BACKEND_URL = http://localhost:8080/ | ||
64 | |||
65 | # Annual fee we charge. | ||
66 | #ANNUAL_FEE = EUR:4.99 | ||
67 | ANNUAL_FEE = EUR:4.99 | ||
68 | |||
69 | TRUTH_UPLOAD_FEE = EUR:0.0 | ||
70 | |||
71 | # Authentication costs | ||
72 | [authorization-question] | ||
73 | # Cost of authentication by question | ||
74 | COST = EUR:0 | ||
75 | |||
76 | [authorization-file] | ||
77 | # Cost of authentication by file (only for testing purposes) | ||
78 | COST = EUR:1 | ||
79 | |||
80 | [authorization-email] | ||
81 | # Cost of authentication by E-Mail | ||
82 | COST = EUR:0 | ||
83 | |||
84 | [authorization-sms] | ||
85 | # Cost of authentication by SMS | ||
86 | COST = EUR:0 | ||
87 | |||
88 | # Command which is executed for the sms authentication | ||
89 | COMMAND = ./sms_authentication.sh | ||
90 | |||
91 | |||
92 | |||
93 | |||
94 | # This specifies which database the postgres backend uses. | ||
95 | [stasis-postgres] | ||
96 | CONFIG = postgres:///anastasischeck | ||
97 | |||
98 | ########################################## | ||
99 | # Configuration for the merchant backend # | ||
100 | ########################################## | ||
101 | |||
102 | [merchant] | ||
103 | |||
104 | # Which port do we run the backend on? (HTTP server) | ||
105 | PORT = 8080 | ||
106 | |||
107 | # How quickly do we want the exchange to send us our money? | ||
108 | # Used only if the frontend does not specify a value. | ||
109 | WIRE_TRANSFER_DELAY = 0 s | ||
110 | |||
111 | # Which plugin (backend) do we use for the DB. | ||
112 | DB = postgres | ||
113 | |||
114 | # Default choice for maximum wire fee. | ||
115 | DEFAULT_MAX_WIRE_FEE = EUR:0.10 | ||
116 | |||
117 | # Default choice for maximum deposit fee. | ||
118 | DEFAULT_MAX_DEPOSIT_FEE = EUR:0.10 | ||
119 | |||
120 | |||
121 | # This specifies which database the postgres backend uses. | ||
122 | [merchantdb-postgres] | ||
123 | CONFIG = postgres:///talercheck | ||
124 | |||
125 | # Sections starting with "exchange-" specify trusted exchanges | ||
126 | # (by the merchant) | ||
127 | [merchant-exchange-default] | ||
128 | MASTER_KEY = T1VVFQZZARQ1CMF4BN58EE7SKTW5AV2BS18S87ZEGYS4S29J6DNG | ||
129 | EXCHANGE_BASE_URL = http://localhost:8081/ | ||
130 | #MASTER_KEY = DY95EXAHQ2BKM2WK9YHZHYG1R7PPMMJPY14FNGP662DAKE35AKQG | ||
131 | #EXCHANGE_BASE_URL = https://exchange.test.taler.net/ | ||
132 | #CURRENCY = EUR | ||
133 | CURRENCY = EUR | ||
134 | |||
135 | # only fixes skips. | ||
136 | [auditor] | ||
137 | BASE_URL = http://the.auditor/ | ||
138 | #BASE_URL = https://auditor.test.taler.net/ | ||
139 | #AUDITOR_KEY = DSDASDXAMDAARMNAD53ZA4AFAHA2QADAMAHHASWDAWXN84SDAA11 | ||
140 | # If currency does not match [TALER] section, the auditor | ||
141 | # will be ignored! | ||
142 | CURRENCY = EUR | ||
143 | |||
144 | # Where do we store the auditor's private key? | ||
145 | AUDITOR_PRIV_FILE = ${TALER_DATA_HOME}/auditor/offline-keys/auditor.priv | ||
146 | |||
147 | # Auditors must be in sections "auditor-", the rest of the section | ||
148 | # name could be anything. | ||
149 | [auditor-ezb] | ||
150 | # Informal name of the auditor. Just for the user. | ||
151 | NAME = European Central Bank | ||
152 | |||
153 | # URL of the auditor (especially for in the future, when the | ||
154 | # auditor offers an automated issue reporting system). | ||
155 | # Not really used today. | ||
156 | URL = http://taler.ezb.eu/ | ||
157 | |||
158 | # This is the important bit: the signing key of the auditor. | ||
159 | PUBLIC_KEY = 9QXF7XY7E9VPV47B5Z806NDFSX2VJ79SVHHD29QEQ3BG31ANHZ60 | ||
160 | |||
161 | # Which currency is this auditor trusted for? | ||
162 | CURRENCY = EUR | ||
163 | |||
164 | |||
165 | ################################################### | ||
166 | # Configuration for the exchange for the testcase # | ||
167 | ################################################### | ||
168 | |||
169 | [exchange] | ||
170 | # How to access our database | ||
171 | DB = postgres | ||
172 | |||
173 | # HTTP port the exchange listens to | ||
174 | PORT = 8081 | ||
175 | |||
176 | # how long are the signatures with the signkey valid? | ||
177 | SIGNKEY_LEGAL_DURATION = 2 years | ||
178 | |||
179 | # Our public key | ||
180 | MASTER_PUBLIC_KEY = T1VVFQZZARQ1CMF4BN58EE7SKTW5AV2BS18S87ZEGYS4S29J6DNG | ||
181 | |||
182 | # Base URL of the exchange. | ||
183 | BASE_URL = "http://localhost:8081/" | ||
184 | #BASE_URL = https://exchange.test.taler.net/ | ||
185 | |||
186 | KEYDIR = ${TALER_DATA_HOME}/exchange/live-keys/ | ||
187 | |||
188 | REVOCATION_DIR = ${TALER_DATA_HOME}/exchange/revocations/ | ||
189 | |||
190 | |||
191 | # Network configuration for the normal API/service HTTP server | ||
192 | # serve via tcp socket (on PORT) | ||
193 | SERVE = tcp | ||
194 | |||
195 | [exchange-offline] | ||
196 | |||
197 | # Where do we store the offline master private key of the exchange? | ||
198 | MASTER_PRIV_FILE = ${TALER_DATA_HOME}/exchange/offline-keys/master.priv | ||
199 | |||
200 | # Where do we store the TOFU key material? | ||
201 | SECM_TOFU_FILE = ${TALER_DATA_HOME}/exchange/offline-keys/secm_tofus.pub | ||
202 | |||
203 | |||
204 | [exchangedb-postgres] | ||
205 | CONFIG = "postgres:///talercheck" | ||
206 | |||
207 | [auditordb-postgres] | ||
208 | CONFIG = "postgres:///talercheck" | ||
209 | |||
210 | # Account of the EXCHANGE | ||
211 | [exchange-account-exchange] | ||
212 | # What is the exchange's bank account (with the "Taler Bank" demo system)? | ||
213 | PAYTO_URI = "payto://x-taler-bank/localhost:8082/2" | ||
214 | |||
215 | WIRE_GATEWAY_URL = "http://localhost:8082/2/" | ||
216 | WIRE_GATEWAY_AUTH_METHOD = NONE | ||
217 | |||
218 | ENABLE_DEBIT = YES | ||
219 | ENABLE_CREDIT = YES | ||
220 | |||
221 | |||
222 | [coin_eur_ct_1] | ||
223 | value = EUR:0.01 | ||
224 | duration_withdraw = 7 days | ||
225 | duration_spend = 2 years | ||
226 | duration_legal = 3 years | ||
227 | fee_withdraw = EUR:0.00 | ||
228 | fee_deposit = EUR:0.00 | ||
229 | fee_refresh = EUR:0.01 | ||
230 | fee_refund = EUR:0.01 | ||
231 | rsa_keysize = 1024 | ||
232 | |||
233 | [coin_eur_ct_10] | ||
234 | value = EUR:0.10 | ||
235 | duration_withdraw = 7 days | ||
236 | duration_spend = 2 years | ||
237 | duration_legal = 3 years | ||
238 | fee_withdraw = EUR:0.01 | ||
239 | fee_deposit = EUR:0.01 | ||
240 | fee_refresh = EUR:0.03 | ||
241 | fee_refund = EUR:0.01 | ||
242 | rsa_keysize = 1024 | ||
243 | |||
244 | [coin_eur_1] | ||
245 | value = EUR:1 | ||
246 | duration_withdraw = 7 days | ||
247 | duration_spend = 2 years | ||
248 | duration_legal = 3 years | ||
249 | fee_withdraw = EUR:0.01 | ||
250 | fee_deposit = EUR:0.01 | ||
251 | fee_refresh = EUR:0.03 | ||
252 | fee_refund = EUR:0.01 | ||
253 | rsa_keysize = 1024 | ||
254 | |||
255 | [coin_eur_5] | ||
256 | value = EUR:5 | ||
257 | duration_withdraw = 7 days | ||
258 | duration_spend = 2 years | ||
259 | duration_legal = 3 years | ||
260 | fee_withdraw = EUR:0.01 | ||
261 | fee_deposit = EUR:0.01 | ||
262 | fee_refresh = EUR:0.03 | ||
263 | fee_refund = EUR:0.01 | ||
264 | rsa_keysize = 1024 | ||