This commit is contained in:
parent
0a45e7fe95
commit
830778313c
14 changed files with 84 additions and 5 deletions
74
default/assets/mte.conf
Normal file
74
default/assets/mte.conf
Normal file
|
|
@ -0,0 +1,74 @@
|
||||||
|
[currency-EUR]
|
||||||
|
enabled= YES
|
||||||
|
code= EUR
|
||||||
|
name= euro
|
||||||
|
fractional_input_digits= 2
|
||||||
|
fractional_normal_digits= 2
|
||||||
|
fractional_trailing_zero_digits= 2
|
||||||
|
alt_unit_names= "{"0":"€","3":"k€"}"
|
||||||
|
|
||||||
|
[exchange]
|
||||||
|
currency = EUR
|
||||||
|
currency_round_unit = EUR:0.01
|
||||||
|
db = postgres
|
||||||
|
attribute_encryption_key = "deadbeef"
|
||||||
|
port = 3434
|
||||||
|
bind_to = localhost
|
||||||
|
master_public_key = "SJ0NYND22VQP3MP7FM754RDX8HCKVWAXTHY9SQNBTPRJZ2SPM2S0"
|
||||||
|
stefan_abs = EUR:0.00
|
||||||
|
stefan_log = EUR:0.00
|
||||||
|
stefan_lin = 0.00
|
||||||
|
aggregator_idle_sleep_interval = "1 hour"
|
||||||
|
closer_idle_sleep_interval = "1 hour"
|
||||||
|
transfer_idle_sleep_interval = "1 hour"
|
||||||
|
wirewatch_idle_sleep_interval = "1 hour"
|
||||||
|
signkey_legal_duration = "1 year"
|
||||||
|
max_keys_caching = "4 weeks"
|
||||||
|
enable_kyc = NO
|
||||||
|
terms_etag = "0"
|
||||||
|
privacy_etag = "0"
|
||||||
|
base_url = "http://localhost:3434/"
|
||||||
|
|
||||||
|
[exchangedb]
|
||||||
|
idle_reserve_expiration_time = "1 year 2 weeks 3 hours 4 minutes 5 seconds"
|
||||||
|
legal_reserve_expiration_time = "1 year"
|
||||||
|
aggregator_shift = "1 year"
|
||||||
|
max_aml_program_runtime = "1 year"
|
||||||
|
default_purse_limit = 9999
|
||||||
|
|
||||||
|
[exchangedb-postgres]
|
||||||
|
config = "pgx://mte:hunter2@localhost:5432/taler-exchange"
|
||||||
|
|
||||||
|
[taler-exchange-secmod-rsa]
|
||||||
|
lookahead_sign = "1 year"
|
||||||
|
overlap_duration = "1 year"
|
||||||
|
|
||||||
|
[taler-exchange-secmod-eddsa]
|
||||||
|
lookahead_sign = "1 year"
|
||||||
|
overlap_duration = "1 year"
|
||||||
|
|
||||||
|
[coin_kudo_1]
|
||||||
|
value= EUR:0.01
|
||||||
|
duration_withdraw= "1 year"
|
||||||
|
duration_spend= "1 year"
|
||||||
|
duration_legal= "1 year"
|
||||||
|
fee_withdraw= EUR:0.00
|
||||||
|
fee_deposit= EUR:0.00
|
||||||
|
fee_refresh= EUR:0.00
|
||||||
|
fee_refund= EUR:0.00
|
||||||
|
cipher= RSA
|
||||||
|
rsa_keysize= 2048
|
||||||
|
age_restricted= NO
|
||||||
|
|
||||||
|
[coin_kudo_2]
|
||||||
|
value= EUR:0.02
|
||||||
|
duration_withdraw= "1 year"
|
||||||
|
duration_spend= "1 year"
|
||||||
|
duration_legal= "1 year"
|
||||||
|
fee_withdraw= EUR:0.00
|
||||||
|
fee_deposit= EUR:0.00
|
||||||
|
fee_refresh= EUR:0.00
|
||||||
|
fee_refund= EUR:0.00
|
||||||
|
cipher= RSA
|
||||||
|
rsa_keysize= 2048
|
||||||
|
age_restricted= NO
|
||||||
1
default/assets/privacy/en/0.md
Normal file
1
default/assets/privacy/en/0.md
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
# TODO dummy ToS
|
||||||
1
default/assets/privacy/en/0.txt
Normal file
1
default/assets/privacy/en/0.txt
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
# TODO dummy ToS
|
||||||
1
default/assets/terms/en/0.md
Normal file
1
default/assets/terms/en/0.md
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
# TODO dummy ToS
|
||||||
1
default/assets/terms/en/0.txt
Normal file
1
default/assets/terms/en/0.txt
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
# TODO dummy ToS
|
||||||
|
|
@ -1,9 +1,10 @@
|
||||||
open Parse_config
|
open Parse_config
|
||||||
|
|
||||||
|
let config_filename = "mte.conf"
|
||||||
|
|
||||||
let config_data =
|
let config_data =
|
||||||
let path = Fpath.to_string (Fpath.v "default.config") in
|
match Assets_crunch.read config_filename with
|
||||||
match Assets_crunch.read path with
|
| None -> fail "static file not found: `%s`" config_filename
|
||||||
| None -> fail "static file not found: `%s`" path
|
|
||||||
| Some data ->
|
| Some data ->
|
||||||
let v = Config_section.parse data in
|
let v = Config_section.parse data in
|
||||||
v
|
v
|
||||||
|
|
|
||||||
4
src/dune
4
src/dune
|
|
@ -37,8 +37,8 @@
|
||||||
(rule
|
(rule
|
||||||
(target assets_crunch.ml)
|
(target assets_crunch.ml)
|
||||||
(deps
|
(deps
|
||||||
(source_tree ../data/assets/))
|
(source_tree ../assets/))
|
||||||
(action
|
(action
|
||||||
(with-stdout-to
|
(with-stdout-to
|
||||||
%{null}
|
%{null}
|
||||||
(run ocaml-crunch -m plain ../data/assets -o %{target}))))
|
(run ocaml-crunch -m plain ../assets -o %{target}))))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue