summaryrefslogtreecommitdiff
path: root/man/taler.conf.5
blob: 85e2fb27cf4a6bb020197a87a52ecb34a0ae2b26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
.\" Man page generated from reStructuredText.
.
.
.nr rst2man-indent-level 0
.
.de1 rstReportMargin
\\$1 \\n[an-margin]
level \\n[rst2man-indent-level]
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
-
\\n[rst2man-indent0]
\\n[rst2man-indent1]
\\n[rst2man-indent2]
..
.de1 INDENT
.\" .rstReportMargin pre:
. RS \\$1
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
. nr rst2man-indent-level +1
.\" .rstReportMargin post:
..
.de UNINDENT
. RE
.\" indent \\n[an-margin]
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
.nr rst2man-indent-level -1
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
.TH "TALER.CONF" "5" "May 18, 2023" "0.9" "GNU Taler"
.SH NAME
taler.conf \- Taler configuration file
.SH DESCRIPTION
.sp
The configuration file is line\-oriented.
Blank lines and whitespace at the beginning and end of a line are ignored.
Comments start with \fB#\fP or \fB%\fP in the first column
(after any beginning\-of\-line whitespace) and go to the end of the line.
.sp
The file is split into sections.
Every section begins with “[SECTIONNAME]” and
contains a number of options of the form “OPTION=VALUE”.
There may be whitespace around the \fB=\fP (equal sign).
Section names and options are \fIcase\-insensitive\fP\&.
.sp
The values, however, are \fIcase\-sensitive\fP\&.
In particular, boolean values are one of \fBYES\fP or \fBNO\fP\&.
Values can include whitespace by surrounding
the entire value with \fB"\fP (double quote).
Note, however, that there are no escape characters in such strings;
all characters between the double quotes (including other double quotes)
are taken verbatim.
.sp
Values that represent filenames can begin with a \fB/bin/sh\fP\-like
variable reference.
This can be simple, such as \fB$TMPDIR/foo\fP, or complex,
such as \fB${TMPDIR:\-${TMP:\-/tmp}}/foo\fP\&.
See \fB[PATHS]\fP (below).
.sp
Values that represent a time duration are represented as a series
of one or more \fBNUMBER UNIT\fP pairs, e.g. \fB60 s\fP, \fB4 weeks 1 day\fP,
\fB5 years 2 minutes\fP\&.
.sp
Values that represent an amount are in the usual amount syntax:
\fBCURRENCY:VALUE.FRACTION\fP, e.g. \fBEUR:1.50\fP\&.
The \fBFRACTION\fP portion may extend up to 8 places.
.sp
The “[PATHS]” section is special in that it contains paths that can be
referenced using “$” in other configuration values that specify
\fIfilenames\fP\&. Note that configuration options that are not specifically
retrieved by the application as \fIfilenames\fP will not see “$”\-expressions
expanded. To expand “$”\-expressions when using \fBtaler\-config\fP, you must pass
the \fB\-f\fP command\-line option.
.sp
The system automatically pre\-populates the “[PATHS]” section with a few values
at run\-time in addition to the values that are in the actual configuration
file.  These automatically generated values refer to installation properties
from \fI\%GNU autoconf\fP\&. The
values are usually dependent on an \fBINSTALL_PREFIX\fP which is determined by
the \fB\-\-prefix\fP option given to configure.  The canonical values are:
.INDENT 0.0
.INDENT 3.5
.INDENT 0.0
.IP \(bu 2
LIBEXECDIR = $INSTALL_PREFIX/taler/libexec/
.IP \(bu 2
DOCDIR = $INSTALL_PREFIX/share/doc/taler/
.IP \(bu 2
ICONDIR = $INSTALL_PREFIX/share/icons/
.IP \(bu 2
LOCALEDIR = $INSTALL_PREFIX/share/locale/
.IP \(bu 2
PREFIX = $INSTALL_PREFIX/
.IP \(bu 2
BINDIR = $INSTALL_PREFIX/bin/
.IP \(bu 2
LIBDIR = $INSTALL_PREFIX/lib/taler/
.IP \(bu 2
DATADIR = $INSTALL_PREFIX/share/taler/
.UNINDENT
.UNINDENT
.UNINDENT
.sp
Note that on some platforms, the given paths may differ depending
on how the system was compiled or installed, the above are just the
canonical locations of the various resources.
.sp
Files containing default values for many of the options described below
are installed under \fB$TALER_PREFIX/share/taler/config.d/\fP\&.
The configuration file given with \fB\-c\fP to Taler binaries
overrides these defaults.
.sp
A configuration file may include another, by using the \fB@INLINE@\fP directive,
for example, in \fBmain.conf\fP, you could write \fB@INLINE@ sub.conf\fP to
include the entirety of \fBsub.conf\fP at that point in \fBmain.conf\fP\&.
.sp
Be extra careful when using \fBtaler\-config \-V VALUE\fP to change configuration
values: it will destroy all uses of \fB@INLINE@\fP and furthermore remove all
comments from the configuration file!
.SS GLOBAL OPTIONS
.sp
The following options are from the “[taler]” section and used by
virtually all Taler components.
.INDENT 0.0
.TP
.B CURRENCY
Name of the currency, e.g.\ “EUR” for Euro.
.TP
.B CURRENCY_ROUND_UNIT
Smallest amount in this currency that can be transferred using the
underlying RTGS. For example: "EUR:0.01" or "JPY:1".
.UNINDENT
.sp
The “[PATHS]” section is special in that it contains paths that can be
referenced using “$” in other configuration values that specify
filenames. For Taler, it commonly contains the following paths:
.INDENT 0.0
.TP
.B TALER_HOME
Home directory of the user, usually “${HOME}”. Can be overwritten by
testcases by setting ${TALER_TEST_HOME}.
.TP
.B TALER_DATA_HOME
Where should Taler store its long\-term data.
Usually “${TALER_HOME}/.local/share/taler/”.
.TP
.B TALER_CONFIG_HOME
Where is the Taler configuration kept.
Usually “${TALER_HOME}/.config/taler/”.
.TP
.B TALER_CACHE_HOME
Where should Taler store cached data.
Usually “${TALER_HOME}/.cache/taler/”.
.TP
.B TALER_RUNTIME_DIR
Where should Taler store system runtime data (like UNIX domain
sockets). Usually “${TMP}/taler\-system\-runtime”.
.UNINDENT
.SS EXCHANGE OPTIONS
.sp
The following options are from the “[exchange]” section and used by most
exchange tools.
.INDENT 0.0
.TP
.B DB
Plugin to use for the database, e.g.\ “postgres”.
.TP
.B PORT
Port on which the HTTP server listens, e.g.\ 8080.
.TP
.B MASTER_PUBLIC_KEY
Crockford Base32\-encoded master public key, public version of the
exchange\(aqs long\-time offline signing key.
.TP
.B MASTER_PRIV_FILE
Location of the master private key on disk. Only used by tools that
can be run offline (as the master key is for offline signing).
.TP
.B AML_THRESHOLD
Largest amount in this currency that can be transferred per month without
an AML staff member doing a (manual) AML check. For example: "USD:1000000".
.TP
.B KYC_AML_TRIGGER
Program to run on KYC attribute data to decide whether we should immediately flag an account for AML review. Program must return 0 if a manual AML review is not needed, and non\-zero to trigger an AML review. The KYC attribute data of the new user will be passed on standard\-input.
.TP
.B ENABLE_TIPPING
This option can be used to announce that an exchange does not allow
the use of the reserves for tipping. The default is YES which means
that tipping is allowed.  The option merely announces that
tipping is enabled or disabled, and protocol\-compliant merchant
backends will then enable or disable the feature accordingly.
.TP
.B BASE_URL
The base URL under which the exchange can be reached.
Added to wire transfers to enable tracking by merchants.
Used by the KYC logic when interacting with OAuth 2.0.
.TP
.B AGGREGATOR_IDLE_SLEEP_INTERVAL
For how long should the taler\-exchange\-aggregator sleep when it is idle
before trying to look for more work? Default is 60 seconds.
.TP
.B CLOSER_IDLE_SLEEP_INTERVAL
For how long should the taler\-exchange\-closer sleep when it is idle
before trying to look for more work? Default is 60 seconds.
.TP
.B TRANSFER_IDLE_SLEEP_INTERVAL
For how long should the taler\-exchange\-transfer sleep when it is idle
before trying to look for more work? Default is 60 seconds.
.TP
.B WIREWATCH_IDLE_SLEEP_INTERVAL
For how long should the taler\-exchange\-wirewatch sleep when it is idle
before trying to look for more work? Default is 60 seconds.
.TP
.B AGGREGATOR_SHARD_SIZE
Which share of the range from [0,..2147483648] should be processed by one of the shards of the aggregator. Useful only for Taler exchanges with ultra high\-performance needs. When changing this value, you must stop all aggregators and run "taler\-exchange\-dbinit \-s" before resuming. Default is 2147483648 (no sharding).
.TP
.B SIGNKEY_LEGAL_DURATION
For how long are signatures with signing keys legally valid?
.TP
.B MAX_KEYS_CACHING
For how long should clients cache \fB/keys\fP responses at most?
.TP
.B MAX_REQUESTS
How many requests should the HTTP server process at most before committing suicide?
.TP
.B TERMS_DIR
Directory where the terms of service of the exchange operator can be fund.
The directory must contain sub\-directories for every supported language,
using the two\-character language code in lower case, e.g. "en/" or "fr/".
Each subdirectory must then contain files with the terms of service in
various formats.  The basename of the file of the current policy must be
specified under \fBTERMS_ETAG\fP\&.  The extension defines the mime type.
Supported extensions include "html", "htm", "txt", "pdf", "jpg", "jpeg",
"png" and "gif".  For example, using a \fBTERMS_ETAG\fP of "0", the structure
could be the following:
.INDENT 7.0
.IP \(bu 2
$TERMS_DIR/en/0.pdf
.IP \(bu 2
$TERMS_DIR/en/0.html
.IP \(bu 2
$TERMS_DIR/en/0.txt
.IP \(bu 2
$TERMS_DIR/fr/0.pdf
.IP \(bu 2
$TERMS_DIR/fr/0.html
.IP \(bu 2
$TERMS_DIR/de/0.txt
.UNINDENT
.TP
.B TERMS_ETAG
Basename of the file(s) in the \fBTERMS_DIR\fP with the current terms of service.
The value is also used for the "Etag" in the HTTP request to control
caching.  Whenever the terms of service change, the \fBTERMS_ETAG\fP MUST also
change, and old values MUST NOT be repeated.  For example, the date or
version number of the terms of service SHOULD be used for the Etag.  If
there are minor (e.g. spelling) fixes to the terms of service, the
\fBTERMS_ETAG\fP probably SHOULD NOT be changed. However, whenever users must
approve the new terms, the \fBTERMS_ETAG\fP MUST change.
.TP
.B PRIVACY_DIR
Works the same as \fBTERMS_DIR\fP, just for the privacy policy.
.TP
.B PRIVACY_ETAG
Works the same as \fBTERMS_ETAG\fP, just for the privacy policy.
.UNINDENT
.SS EXCHANGE KYC PROVIDER OPTIONS
.sp
The following options must be in the section "[kyc\-provider\-XXX]" sections.
.INDENT 0.0
.TP
.B COST
Relative cost of the KYC provider, non\-negative number.
.TP
.B LOGIC
API type of the KYC provider.
.TP
.B USER_TYPE
Type of user this provider is for, either INDIVIDUAL or BUSINESS.
.TP
.B PROVIDED_CHECKS
List of checks performed by this provider. Space\-separated names of checks, must match check names in legitimization rules.
.UNINDENT
.SS EXCHANGE KYC OAUTH2 OPTIONS
.sp
The following options must be in the section "[kyc\-provider\-XXX]" sections with "LOGIC = oauth2".
.INDENT 0.0
.TP
.B KYC_OAUTH2_VALIDITY
Duration (e.g. "12 months") of the validity of the performed KYC check. Can be "forever".
.TP
.B KYC_OAUTH2_AUTHORIZE_URL
URL of the OAuth2 endpoint to be used for KYC checks. The authorize URL is where the exchange will redirect the client to begin the authorization process.  Example: "\fI\%http://localhost:8888/oauth/v2/authorize\fP". To use the plugin in combination with the Challenger service\(aqs \fB/setup\fP step, append "#setup", thus "\fI\%https://challenger.example.com/authorize#setup\fP".  Here, "#setup" is not a fragment but merely a hint to the logic to determine the full authorization URL via the \fB/setup\fP handler.
.TP
.B KYC_OAUTH2_TOKEN_URL
URL of the OAuth2 endpoint to be used for KYC checks. This is where the server will ultimately send the authorization token from the client and obtain its access token (which currently must be a "bearer" token). Example: "\fI\%http://localhost:8888/oauth/v2/token\fP" (or just "/token")
.TP
.B KYC_OAUTH2_INFO_URL
URL of the OAuth2\-protected resource endpoint, where the OAuth 2.0 token can be used to download information about the user that has undergone the KYC process. The exchange will use the access token obtained from the KYC_AUTH2_AUTH_URL to show that it is authorized to obtain the details. Example: "\fI\%http://localhost:8888/api/user/me\fP" or "\fI\%http://localhost:8888/oauth/v2/info\fP"
.TP
.B KYC_OAUTH2_CLIENT_ID
Client ID of the exchange when it talks to the KYC OAuth2 endpoint.
.TP
.B KYC_OAUTH2_CLIENT_SECRET
Client secret of the exchange to use when talking to the KYC Oauth2 endpoint.
.TP
.B KYC_OAUTH2_POST_URL
URL to which the exchange will redirect the client\(aqs browser after successful authorization/login for the KYC process. Example: "\fI\%http://example.com/thank\-you\fP"
.UNINDENT
.SS EXCHANGE KYC KYCAID OPTIONS
.sp
The following options must be in the section "[kyc\-provider\-XXX]" sections with "LOGIC = kycaid".
.INDENT 0.0
.TP
.B KYC_KYCAID_VALIDITY
Duration (e.g. "12 months") of the validity of the performed KYC check. Can be "forever".
.TP
.B KYC_KYCAID_AUTH_TOKEN
Authentication token to access the KYC service.
.TP
.B KYC_KYCAID_FORM_ID
ID that specifies the form to use for the KYC process.
.TP
.B KYC_KYCAID_POST_URL
URL to which the exchange will redirect the client\(aqs browser after successful authorization/login for the KYC process.
.UNINDENT
.SS EXCHANGE KYC PERSONA OPTIONS
.sp
The following options must be in the section "[kyc\-provider\-XXX]" sections with "LOGIC = persona".
.INDENT 0.0
.TP
.B KYC_PERSONA_VALIDITY
Duration (e.g. "12 months") of the validity of the performed KYC check. Can be "forever".
.TP
.B KYC_PERSONA_AUTH_TOKEN
Authentication token to access the KYC service.
.TP
.B KYC_PERSONA_SALT
Salt value to use for request idempotency. Optional, generated at random per process if not given.
.TP
.B KYC_PERSONA_SUBDOMAIN
Subdomain to use under Persona.
.TP
.B KYC_PERSONA_CONVERTER_HELPER
Helper to convert JSON with KYC data returned by Persona into GNU Taler internal format. Should probably always be set to "taler\-exchange\-kyc\-persona\-converter.sh".
.TP
.B KYC_PERSONA_POST_URL
URL to which the exchange will redirect the client\(aqs browser after successful authorization/login for the KYC process.
.TP
.B KYC_PERSONA_TEMPLATE_ID
ID of the Persona template to use.
.UNINDENT
.SS EXCHANGE KYC PERSONA GLOBAL OPTIONS
.sp
The following option must be in the section "[kyclogic\-persona]".
.INDENT 0.0
.TP
.B WEBHOOK_AUTH_TOKEN
Authentication token Persona must supply to our webhook. This is an optional setting.
.UNINDENT
.SS EXCHANGE EXTENSIONS OPTIONS
.sp
The functionality of the exchange can be extended by extensions.  Those are
shared libraries which implement the extension\-API of the exchange and are
located under \fB$LIBDIR\fP, starting with prefix \fBlibtaler_extension_\fP\&. Each
extension can be enabled by adding a dedicated section
"[exchange\-extension\-<extensionname>]" and the following option:
.INDENT 0.0
.TP
.B ENABLED
If set to \fBYES\fP the extension \fB<extensionsname>\fP is enabled.  Extension\-specific
options might be set in the same section.
.UNINDENT
.SS EXCHANGE EXTENSION FOR AGE RESTRICTION
.sp
The extension for age restriction support can be enabled by adding a section
"[exchange\-extension\-age_restriction]" with the following options:
.INDENT 0.0
.TP
.B ENABLE
Must be set to \fBYES\fP in order to activate the extension.
.TP
.B AGE_GROUPS
A colon\-seperated string of increasing non\-negative integers, defining the
buckets of age groups supported by the exchange.  Each integer marks the
beginning of the next age group.  The zero\(aqth age group implicitely starts
with 0.  For example, the string "10:18" would define three age groups:
.INDENT 7.0
.INDENT 3.5
.INDENT 0.0
.IP 1. 3
Group 0: ages 0 through 9 (including)
.IP 2. 3
Group 1: ages 10 through 17 (including)
.IP 3. 3
Group 2: ages 18 and above
.UNINDENT
.UNINDENT
.UNINDENT
.sp
If not provided, the default value is "8:10:12:14:16:18:21".
.UNINDENT
.sp
\fBNote\fP: Age restriction is bound to specific denominations and must be
enabled for each selected denomination in the corresponding section by adding
the option \fBAGE_RESTRICTED = YES\fP, see \fI\%EXCHANGE COIN OPTIONS\fP\&. However, the
age groups are defined globally for all denominations.
.SS EXCHANGE OFFLINE SIGNING OPTIONS
.sp
The following options must be in the section "[exchange\-offline]".
.INDENT 0.0
.TP
.B MASTER_PRIV_FILE
Where to store the offline private key of the exchange.
Mandatory.
.TP
.B SECM_TOFU_FILE
Where to store the public keys of both crypto helper modules.
Used to persist the keys after the first invocation of the tool,
so that if they ever change in the future, this is detected and
the tool can abort.
Mandatory.
.TP
.B SECM_DENOM_PUBKEY
Public key of the (RSA) crypto helper module. Optional. If not given,
we will rely on TOFU.  Note that once TOFU has been established,
this option will also be ignored.
.TP
.B SECM_ESIGN_PUBKEY
Public key of the (EdDSA) crypto helper module. Optional. If not given,
we will rely on TOFU.  Note that once TOFU has been established,
this option will also be ignored.
.UNINDENT
.SS EXCHANGE RSA CRYPTO HELPER OPTIONS
.sp
The following options must be in the section "[taler\-exchange\-secmod\-rsa]".
.INDENT 0.0
.TP
.B LOOKAHEAD_SIGN
How long do we generate denomination and signing keys ahead of time?
.TP
.B OVERLAP_DURATION
How much should validity periods for coins overlap?
Should be long enough to avoid problems with
wallets picking one key and then due to network latency
another key being valid.  The \fBDURATION_WITHDRAW\fP period
must be longer than this value.
.TP
.B SM_PRIV_KEY
Where should the security module store its long\-term private key?
.TP
.B KEY_DIR
Where should the security module store the private keys it manages?
.TP
.B UNIXPATH
On which path should the security module listen for signing requests?
.UNINDENT
.sp
Note that the \fBtaler\-exchange\-secmod\-rsa\fP also evaluates the \fB[coin_*]\fP
configuration sections described below.
.SS EXCHANGE CS CRYPTO HELPER OPTIONS
.sp
The following options must be in the section "[taler\-exchange\-secmod\-cs]".
.INDENT 0.0
.TP
.B LOOKAHEAD_SIGN
How long do we generate denomination and signing keys ahead of time?
.TP
.B OVERLAP_DURATION
How much should validity periods for coins overlap?
Should be long enough to avoid problems with
wallets picking one key and then due to network latency
another key being valid.  The \fBDURATION_WITHDRAW\fP period
must be longer than this value.
.TP
.B SM_PRIV_KEY
Where should the security module store its long\-term private key?
.TP
.B KEY_DIR
Where should the security module store the private keys it manages?
.TP
.B UNIXPATH
On which path should the security module listen for signing requests?
.UNINDENT
.sp
Note that the \fBtaler\-exchange\-secmod\-cs\fP also evaluates the \fB[coin_*]\fP
configuration sections described below.
.SS EXCHANGE EDDSA CRYPTO HELPER OPTIONS
.sp
The following options must be in the section "[taler\-exchange\-secmod\-eddsa]".
.INDENT 0.0
.TP
.B LOOKAHEAD_SIGN
How long do we generate denomination and signing keys ahead of time?
.TP
.B OVERLAP_DURATION
How much should validity periods for coins overlap?
Should be long enough to avoid problems with
wallets picking one key and then due to network latency
another key being valid.  The \fBDURATION_WITHDRAW\fP period
must be longer than this value.
.TP
.B DURATION
For how long should EdDSA keys be valid for signing?
.TP
.B SM_PRIV_KEY
Where should the security module store its long\-term private key?
.TP
.B KEY_DIR
Where should the security module store the private keys it manages?
.TP
.B UNIXPATH
On which path should the security module listen for signing requests?
.UNINDENT
.SS EXCHANGE DATABASE OPTIONS
.sp
The following options must be in the section "[exchangedb]".
.INDENT 0.0
.TP
.B IDLE_RESERVE_EXPIRATION_TIME
After which time period should reserves be closed if they are idle?
.TP
.B LEGAL_RESERVE_EXPIRATION_TIME
After what time do we forget about (drained) reserves during garbage collection?
.TP
.B AGGREGATOR_SHIFT
Delay between a deposit being eligible for aggregation and
the aggregator actually triggering.
.TP
.B DEFAULT_PURSE_LIMIT
Number of concurrent purses that a reserve may have active
if it is paid to be opened for a year.
.UNINDENT
.SS EXCHANGE POSTGRES BACKEND DATABASE OPTIONS
.sp
The following options must be in section “[exchangedb\-postgres]” if the
“postgres” plugin was selected for the database.
.INDENT 0.0
.TP
.B CONFIG
How to access the database, e.g.\ “postgres:///taler” to use the
“taler” database. Testcases use “talercheck”.
.UNINDENT
.SS EXCHANGE ACCOUNT OPTIONS
.sp
An exchange (or merchant) can have multiple bank accounts. The following
options are for sections named “[exchange\-account\-SOMETHING]”. The \fBSOMETHING\fP is
arbitrary and should be chosen to uniquely identify the bank account for
the operator.  These options are used by the \fBtaler\-exchange\-aggregator\fP, \fBtaler\-exchange\-closer\fP, \fBtaler\-exchange\-transfer\fP and \fBtaler\-exchange\-wirewatch\fP tools.
.INDENT 0.0
.TP
.B PAYTO_URI
Specifies the payto://\-URL of the account. The general format is
\fBpayto://$METHOD/$DETAILS\fP\&.  Examples:
\fBpayto://x\-taler\-bank/localhost:8899/Exchange\fP or
\fBpayto://iban/GENODEF1SLR/DE67830654080004822650/\fP or
\fBpayto://iban/DE67830654080004822650/\fP (providing the BIC is optional).
Note: only the wire\-method is actually used from the URI.
.TP
.B ENABLE_DEBIT
Must be set to \fBYES\fP for the accounts that the
\fBtaler\-exchange\-aggregator\fP and \fBtaler\-exchange\-closer\fP should debit.
.TP
.B ENABLE_CREDIT
Must be set to \fBYES\fP for the accounts that the \fBtaler\-exchange\-wirewatch\fP
should check for credits. It is yet uncertain if the merchant
implementation may check this flag as well.
.UNINDENT
.sp
Additionally, for each enabled account there MUST be another matching section named “[exchange\-accountcredentials\-SOMETHING]”.  This section SHOULD be in a \fBsecret/\fP configuration file that is only readable for the \fBtaler\-exchange\-wirewatch\fP and \fBtaler\-exchange\-transfer\fP processes. It contains the credentials to access the bank account:
.INDENT 0.0
.TP
.B WIRE_GATEWAY_URL
URL of the wire gateway.  Typically of the form
\fBhttps://$HOSTNAME[:$PORT]/taler\-wire\-gateway/$USERNAME/\fP
where $HOSTNAME is the hostname of the system running the bank
(such as the Taler Python bank or the Nexus) and \fB$USERNAME\fP is
the username of the exchange\(aqs bank account (usually matching
the \fBUSERNAME\fP option used for authentication).  Example:
\fBhttps://bank.demo.taler.net/taler\-wire\-gateway/Exchange/\fP\&.
.TP
.B WIRE_GATEWAY_AUTH_METHOD
This option determines how the exchange (auditor/wirewatch/aggregator)
authenticates with the wire gateway.  Choices are \fBbasic\fP and \fBnone\fP\&.
.TP
.B USERNAME
User name for \fBbasic\fP authentication with the wire gateway.
.TP
.B PASSWORD
Password for \fBbasic\fP authentication with the wire gateway.
.UNINDENT
.SS EXCHANGE COIN OPTIONS
.sp
The following options must be in sections starting with \fB"[coin_]"\fP and are
largely used by \fBtaler\-exchange\-httpd\fP to determine the meta data for the
denomination keys.  Some of the options are used by the
\fBtaler\-exchange\-secmod\-rsa\fP to determine which RSA keys to create (and of
what key length).  Note that the section names must match, so this part of the
configuration MUST be shared between the RSA helper and the exchange.
Configuration values MUST NOT be changed in a running setup. Instead, if
parameters for a denomination type are to change, a fresh \fIsection name\fP should
be introduced (and the existing section should be deleted).
.INDENT 0.0
.TP
.B VALUE
Value of the coin, e.g.\ “EUR:1.50” for 1 Euro and 50 Cents (per
coin).
.TP
.B DURATION_WITHDRAW
How long should the same key be used for clients to withdraw coins of
this value?
.TP
.B DURATION_SPEND
How long do clients have to spend these coins?
.TP
.B DURATION_LEGAL
How long does the exchange have to keep records for this denomination?
.TP
.B FEE_WITHDRAW
What fee is charged for withdrawal?
.TP
.B FEE_DEPOSIT
What fee is charged for depositing?
.TP
.B FEE_REFRESH
What fee is charged for refreshing?
.TP
.B FEE_REFUND
What fee is charged for refunds? When a coin is refunded, the deposit
fee is returned. Instead, the refund fee is charged to the customer.
.TP
.B CIPHER
What cryptosystem should be used? Must be set to either "CS" or "RSA".
The respective crypto\-helper will then generate the keys for this
denomination.
.TP
.B RSA_KEYSIZE
What is the RSA keysize modulos (in bits)?  Only used if "CIPHER=RSA".
.TP
.B AGE_RESTRICTED
Setting this option to \fBYES\fP marks the denomination as age restricted
(default is \fBNO\fP).  For this option to be accepted the extension for age
restriction MUST be enabled (see \fI\%EXCHANGE EXTENSION FOR AGE RESTRICTION\fP).
.UNINDENT
.SS MERCHANT OPTIONS
.sp
The following options are from the “[merchant]” section and used by the
merchant backend.
.INDENT 0.0
.TP
.B DB
Plugin to use for the database, e.g._“postgres”.
.TP
.B PORT
Port on which the HTTP server listens, e.g.\ 8080.
.TP
.B LEGAL_PRESERVATION
How long do we keep data in the database for tax audits after the
transaction has completed?  Default is 10 years.
.TP
.B FORCE_AUDIT
Force the merchant to report every transaction to the auditor
(if the exchange has an auditor)?  Default is \fBNO\fP\&.
Do not change except for testing.
.UNINDENT
.SS MERCHANT POSTGRES BACKEND DATABASE OPTIONS
.sp
The following options must be in section “[merchantdb\-postgres]” if the
“postgres” plugin was selected for the database.
.INDENT 0.0
.TP
.B CONFIG
How to access the database, e.g.\ “postgres:///taler” to use the
“taler” database. Testcases use “talercheck”.
.UNINDENT
.SS KNOWN EXCHANGES (for merchants)
.sp
The merchant configuration can include a list of known exchanges if the
merchant wants to specify that certain exchanges are explicitly trusted.
For each trusted exchange, a section [merchant\-exchange\-$NAME] must exist, where
$NAME is a merchant\-given name for the exchange. The following options
must be given in each “[exchange\-$NAME]” section.
.INDENT 0.0
.TP
.B EXCHANGE_BASE_URL
Base URL of the exchange, e.g.\ “\fI\%https://exchange.demo.taler.net/\fP”
.TP
.B MASTER_KEY
Crockford Base32 encoded master public key, public version of the
exchange\(aqs long\-time offline signing key.  Can be omitted, in that
case the exchange will NOT be trusted unless it is audited by
a known auditor.
Omitting \fBMASTER_KEY\fP can be useful if we do not trust the exchange
without an auditor, but should pre\-load the keys of this
particular exchange on startup instead of waiting for it to be
required by a client.
.TP
.B CURRENCY
Name of the currency for which this exchange is used, e.g.\ “KUDOS”.
The entire section is ignored if the currency does not match the currency
we use, which must be given in the \fB[taler]\fP section.
.UNINDENT
.SS AUDITOR OPTIONS
.sp
The following options must be in section “[auditor]” for the Taler
auditor.
.INDENT 0.0
.TP
.B DB
Plugin to use for the database, e.g.\ “postgres”
.TP
.B AUDITOR_PRIV_FILE
Name of the file containing the auditor’s private key.
.TP
.B PUBLIC_KEY
Crockford Base32 encoded auditor public key.  Used by (online) auditor
processes that do not have access to the (offline) auditor private key file.
.TP
.B BASE_URL
Base URL of the auditor, e.g.\ “\fI\%https://auditor.demo.taler.net/\fP”
.UNINDENT
.SS AUDITOR POSTGRES BACKEND DATABASE OPTIONS
.sp
The following options must be in section “[auditordb\-postgres]” if the
“postgres” plugin was selected for the database.
.INDENT 0.0
.TP
.B CONFIG
How to access the database, e.g.\ "postgres:///taler" to use the
"taler" database. Testcases use “talercheck”.
.UNINDENT
.SS Bank Options
.sp
The following options must be in section "[bank]" for the taler\-fakebank\-run(1) command. They are not used by the exchange or LibEuFin!
.INDENT 0.0
.TP
.B HTTP_PORT
On which TCP port should the (fake)bank offer its REST API.
.TP
.B RAM_LIMIT
This gives the number of transactions to keep in memory. Older transactions will be overwritten and history requests for overwritten transactions will fail.
.UNINDENT
.SH SEE ALSO
.sp
taler\-exchange\-dbinit(1), taler\-exchange\-httpd(1),
taler\-exchange\-offline(1), taler\-auditor\-offline(1).
.SH BUGS
.sp
Report bugs by using \fI\%https://bugs.taler.net/\fP or by sending electronic
mail to <\fI\%taler@gnu.org\fP>.
.SH AUTHOR
GNU Taler contributors
.SH COPYRIGHT
2014-2022 Taler Systems SA (GPLv3+ or GFDL 1.3+)
.\" Generated by docutils manpage writer.
.