# This file is in the public domain.
#
[PATHS]
TALER_TEST_HOME = test_anastasis_api_home/
TALER_HOME = ${TALER_TEST_HOME:-${HOME:-${USERPROFILE}}}
TALER_DATA_HOME = ${TALER_TEST_HOME:-${XDG_DATA_HOME:-${TALER_HOME}/.local/share/}/.local/share/}taler/
TALER_CONFIG_HOME = ${TALER_TEST_HOME:-${XDG_CONFIG_HOME:-${TALER_HOME}/.config/}/.config/}taler/
TALER_CACHE_HOME = ${TALER_TEST_HOME:-${XDG_CACHE_HOME:-${TALER_HOME}/.cache/}/.cache/}taler/
# Keep the runtime directory (which holds the secmod UNIX domain sockets)
# per-user: a fixed name under a shared /tmp is created by whoever runs the
# test suite first and is then unusable for everybody else.  Matches the
# convention of exchange-paths.conf.
TALER_RUNTIME_DIR = ${TMPDIR:-${TMP:-/tmp}}/${USER:-}/taler-system-runtime/

[taler-helper-crypto-rsa]
LOOKAHEAD_SIGN = 12 days

[taler-helper-crypto-eddsa]
LOOKAHEAD_SIGN = 12 days
DURATION = 7 days

# The bank is libeufin-bank (see below); this section only survives because
# TALER_TESTING_get_credentials() insists on reading [bank]/HTTP_PORT.
[bank]
HTTP_PORT = 8082
BASE_URL = http://localhost:8082/

# libeufin-bank is started by taler-unified-setup.sh (option '-b'); WIRE_TYPE
# must agree with the wire method the tests pass to it ('-d iban'), as that is
# what decides the shape of the payto://-URIs of the accounts it registers.
[libeufin-bank]
CURRENCY = EUR
WIRE_TYPE = iban
IBAN_PAYTO_BIC = SANDBOXX
BASE_URL = http://localhost:8082/
DEFAULT_CUSTOMER_DEBT_LIMIT = EUR:200
DEFAULT_ADMIN_DEBT_LIMIT = EUR:2000
REGISTRATION_BONUS_ENABLED = yes
REGISTRATION_BONUS = EUR:100
SUGGESTED_WITHDRAWAL_EXCHANGE = http://localhost:8081/
SERVE = tcp
PORT = 8082
# a cheap password hash keeps the test fast
PWD_HASH_CONFIG = { "cost": 4 }
# allow HTTP basic authentication, which is what the exchange's wire gateway
# client uses to talk to the bank
PWD_AUTH_COMPAT = yes

[libeufin-bankdb-postgres]
CONFIG = postgres:///talercheck

[anastasis]
PORT = 8086
DB = postgres
CURRENCY = EUR
BUSINESS_NAME = "Checker's Test Inc."
UPLOAD_LIMIT_MB = 1
ANNUAL_POLICY_UPLOAD_LIMIT = 64
INSURANCE = EUR:0
PROVIDER_SALT = salty
ANNUAL_FEE = EUR:4.99
TRUTH_UPLOAD_FEE = EUR:0.0
BASE_URL = http://localhost:8086/

[anastasis-merchant-backend]
PAYMENT_BACKEND_URL = http://localhost:8080/

[authorization-question]
CURRENCY = EUR
COST = EUR:0

[authorization-file]
CURRENCY = EUR
COST = EUR:1
# The file method writes the challenge code to a file whose name comes from
# the (client-supplied) truth, so the plugin only accepts names inside this
# directory.  Per-user, like TALER_RUNTIME_DIR, so that concurrent runs by
# different users on one host do not collide.
DIRECTORY = ${TMPDIR:-${TMP:-/tmp}}/${USER:-}/anastasis-file-challenges/

[authorization-email]
CURRENCY = EUR
COST = EUR:0

[authorization-sms]
CURRENCY = EUR
COST = EUR:0
COMMAND = ./sms_authentication.sh

[stasis-postgres]
CONFIG = postgres:///anastasischeck

[merchant]
PORT = 8080
WIRE_TRANSFER_DELAY = 0 s
DB = postgres

[merchantdb-postgres]
CONFIG = postgres:///talercheck

[merchant-exchange-default]
MASTER_KEY = T1VVFQZZARQ1CMF4BN58EE7SKTW5AV2BS18S87ZEGYS4S29J6DNG
EXCHANGE_BASE_URL = http://localhost:8081/
CURRENCY = EUR

[auditor]
PORT = 8083
BASE_URL = "http://localhost:8083/"
TINY_AMOUNT = EUR:0.01

[exchange]
CURRENCY = EUR
CURRENCY_ROUND_UNIT = EUR:0.01
TINY_AMOUNT = EUR:0.01
DB = postgres
PORT = 8081
SIGNKEY_LEGAL_DURATION = 2 years
MASTER_PUBLIC_KEY = T1VVFQZZARQ1CMF4BN58EE7SKTW5AV2BS18S87ZEGYS4S29J6DNG
BASE_URL = "http://localhost:8081/"
SERVE = tcp
STEFAN_ABS = "EUR:5"

[exchange-offline]
MASTER_PRIV_FILE = ${TALER_DATA_HOME}/exchange/offline-keys/master.priv

SECM_TOFU_FILE = ${TALER_DATA_HOME}/exchange/offline-keys/secm_tofus.pub

[taler-exchange-secmod-eddsa]
KEY_DIR = ${TALER_DATA_HOME}/exchange-secmod-eddsa/keys

[taler-exchange-secmod-rsa]
KEY_DIR = ${TALER_DATA_HOME}/exchange-secmod-rsa/keys

[taler-exchange-secmod-cs]
KEY_DIR = ${TALER_DATA_HOME}/exchange-secmod-cs/keys


[exchangedb-postgres]
CONFIG = "postgres:///talercheck"

# 'exchange' is one of the accounts taler-unified-setup.sh registers at
# libeufin-bank; the IBAN is the one it hard-codes for that account.
[exchange-account-exchange]
PAYTO_URI = "payto://iban/SANDBOXX/DE989651?receiver-name=Exchange+Company"
ENABLE_DEBIT = YES
ENABLE_CREDIT = YES

[exchange-accountcredentials-exchange]
WIRE_GATEWAY_URL = "http://localhost:8082/accounts/exchange/taler-wire-gateway/"
WIRE_GATEWAY_AUTH_METHOD = basic
USERNAME = exchange
PASSWORD = password

[admin-accountcredentials-exchange]
WIRE_GATEWAY_URL = "http://localhost:8082/accounts/exchange/taler-wire-gateway/"
WIRE_GATEWAY_AUTH_METHOD = basic
USERNAME = admin
# the password taler-unified-setup.sh gives the bank's admin account
PASSWORD = secret-password

[coin_eur_ct_1]
value = EUR:0.01
duration_withdraw = 7 days
duration_spend = 2 years
duration_legal = 3 years
fee_withdraw = EUR:0.00
fee_deposit = EUR:0.00
fee_refresh = EUR:0.01
fee_refund = EUR:0.01
rsa_keysize = 1024
CIPHER = RSA

[coin_eur_ct_10]
value = EUR:0.10
duration_withdraw = 7 days
duration_spend = 2 years
duration_legal = 3 years
fee_withdraw = EUR:0.01
fee_deposit = EUR:0.01
fee_refresh = EUR:0.03
fee_refund = EUR:0.01
rsa_keysize = 1024
CIPHER = RSA

[coin_eur_1]
value = EUR:1
duration_withdraw = 7 days
duration_spend = 2 years
duration_legal = 3 years
fee_withdraw = EUR:0.01
fee_deposit = EUR:0.01
fee_refresh = EUR:0.03
fee_refund = EUR:0.01
rsa_keysize = 1024
CIPHER = RSA

[coin_eur_5]
value = EUR:5
duration_withdraw = 7 days
duration_spend = 2 years
duration_legal = 3 years
fee_withdraw = EUR:0.01
fee_deposit = EUR:0.01
fee_refresh = EUR:0.03
fee_refund = EUR:0.01
rsa_keysize = 1024
CIPHER = RSA
