diff options
Diffstat (limited to 'src/auditor/generate-auditor-basedb.conf')
-rw-r--r-- | src/auditor/generate-auditor-basedb.conf | 187 |
1 files changed, 106 insertions, 81 deletions
diff --git a/src/auditor/generate-auditor-basedb.conf b/src/auditor/generate-auditor-basedb.conf index 337f94130..8cf63fbba 100644 --- a/src/auditor/generate-auditor-basedb.conf +++ b/src/auditor/generate-auditor-basedb.conf @@ -1,102 +1,123 @@ +[PATHS] +TALER_CACHE_HOME = $TALER_HOME/.cache/taler/ +TALER_CONFIG_HOME = $TALER_HOME/.config/taler/ +TALER_DATA_HOME = $TALER_HOME/.local/share/taler/ +TALER_HOME = ${PWD}/generate_auditordb_home/ +[taler] +CURRENCY = TESTKUDOS +CURRENCY_ROUND_UNIT = TESTKUDOS:0.01 + [exchange] -MAX_KEYS_CACHING = forever -DB = postgres -MASTER_PRIV_FILE = ${TALER_DATA_HOME}/exchange/offline-keys/master.priv -SERVE = tcp -UNIXPATH = ${TALER_RUNTIME_DIR}/exchange.http -UNIXPATH_MODE = 660 -PORT = 8081 -BASE_URL = http://localhost:8081/ +MASTER_PUBLIC_KEY = M4FGP18EQFXFGGFQ1AWXHACN2JX0SMVK9CNF6459Z1WG18JSN0BG SIGNKEY_DURATION = 4 weeks -SIGNKEY_LEGAL_DURATION = 4 weeks LOOKAHEAD_SIGN = 32 weeks 1 day +SIGNKEY_LEGAL_DURATION = 4 weeks +AML_THRESHOLD = TESTKUDOS:1000000 +db = postgres +BASE_URL = http://localhost:8081/ +IDLE_RESERVE_EXPIRATION_TIME = 4 weeks +LEGAL_RESERVE_EXPIRATION_TIME = 4 weeks -[merchant] -SERVE = tcp -PORT = 9966 -UNIXPATH = ${TALER_RUNTIME_DIR}/merchant.http -UNIXPATH_MODE = 660 -DEFAULT_WIRE_FEE_AMORTIZATION = 1 -DB = postgres -WIREFORMAT = default -# Set very low, so we can be sure that the database generated -# will contain wire transfers "ready" for the aggregator. -WIRE_TRANSFER_DELAY = 1 minute -DEFAULT_PAY_DEADLINE = 1 day -DEFAULT_MAX_DEPOSIT_FEE = TESTKUDOS:0.1 -KEYFILE = ${TALER_DATA_HOME}/merchant/merchant.priv -DEFAULT_MAX_WIRE_FEE = TESTKUDOS:0.10 - -# Ensure that merchant reports EVERY deposit confirmation to auditor -FORCE_AUDIT = YES - -[instance-default] -KEYFILE = ${TALER_DATA_HOME}/merchant/default.priv -NAME = Merchant Inc. +[exchangedb] +IDLE_RESERVE_EXPIRATION_TIME = 4 weeks +LEGAL_RESERVE_EXPIRATION_TIME = 4 weeks +AGGREGATOR_SHIFT = 1 s +DEFAULT_PURSE_LIMIT = 1 -[auditor] -DB = postgres -AUDITOR_PRIV_FILE = ${TALER_DATA_HOME}/auditor/offline-keys/auditor.priv +[libeufin-bank] +CURRENCY = TESTKUDOS +DEFAULT_CUSTOMER_DEBT_LIMIT = TESTKUDOS:200 +DEFAULT_ADMIN_DEBT_LIMIT = TESTKUDOS:2000 +ALLOW_REGISTRATION = yes +REGISTRATION_BONUS_ENABLED = yes +REGISTRATION_BONUS = TESTKUDOS:100 +SUGGESTED_WITHDRAWAL_EXCHANGE = http://localhost:8081/ +WIRE_TYPE = iban +IBAN_PAYTO_BIC = SANDBOXX SERVE = tcp -UNIXPATH = ${TALER_RUNTIME_DIR}/exchange.http -UNIXPATH_MODE = 660 -PORT = 8083 -BASE_URL = http://localhost:8083/ -TINY_AMOUNT = TESTKUDOS:0.01 +PORT = 8082 -[PATHS] -TALER_HOME = ${PWD}/generate_auditordb_home/ -TALER_DATA_HOME = $TALER_HOME/.local/share/taler/ -TALER_CONFIG_HOME = $TALER_HOME/.config/taler/ -TALER_CACHE_HOME = $TALER_HOME/.cache/taler/ -TALER_RUNTIME_DIR = ${TMPDIR:-${TMP:-/tmp}}/taler-system-runtime/ +[libeufin-bankdb-postgres] +CONFIG = postgresql:///auditor-basedb -[bank] -DATABASE = postgres:///taler-auditor-basedb -MAX_DEBT = TESTKUDOS:50.0 -MAX_DEBT_BANK = TESTKUDOS:100000.0 -HTTP_PORT = 8082 -SUGGESTED_EXCHANGE = http://localhost:8081/ -SUGGESTED_EXCHANGE_PAYTO = payto://x-taler-bank/localhost/2 -ALLOW_REGISTRATIONS = YES -SERVE = http - -[exchangedb] +[exchangedb-postgres] +CONFIG = postgres:///auditor-basedb +SQL_DIR = $DATADIR/sql/exchange/ IDLE_RESERVE_EXPIRATION_TIME = 4 weeks -LEGAL_RESERVE_EXPIRATION_TIME = 7 years - -[taler] -CURRENCY = TESTKUDOS -CURRENCY_ROUND_UNIT = TESTKUDOS:0.01 +LEGAL_RESERVE_EXPIRATION_TIME = 4 weeks [exchange-account-1] -PAYTO_URI = payto://x-taler-bank/localhost/Exchange -enable_debit = yes -enable_credit = yes +PAYTO_URI = payto://iban/SANDBOXX/DE989651?receiver-name=Exchange+Company +ENABLE_DEBIT = YES +ENABLE_CREDIT = YES [exchange-accountcredentials-1] -WIRE_GATEWAY_URL = "http://localhost:8082/taler-wire-gateway/Exchange/" +WIRE_GATEWAY_URL = http://localhost:8082/accounts/exchange/taler-wire-gateway/ +WIRE_GATEWAY_AUTH_METHOD = basic +USERNAME = exchange +PASSWORD = x + +[exchange-account-2] +PAYTO_URI = "payto://x-taler-bank/localhost/2?receiver-name=2" +ENABLE_DEBIT = YES +ENABLE_CREDIT = YES + +[exchange-accountcredentials-2] +WIRE_GATEWAY_AUTH_METHOD = basic +USERNAME = Exchange +PASSWORD = x +WIRE_GATEWAY_URL = "http://localhost:8082/accounts/2/taler-wire-gateway/" + +[admin-accountcredentials-2] WIRE_GATEWAY_AUTH_METHOD = basic +# For now, fakebank still checks against the Exchange account... USERNAME = Exchange PASSWORD = x +WIRE_GATEWAY_URL = "http://localhost:8082/accounts/2/taler-wire-gateway/" -[merchant-account-merchant] -PAYTO_URI = payto://x-taler-bank/localhost/42 -HONOR_default = YES -ACTIVE_default = YES + +[merchant] +FORCE_AUDIT = YES +SERVE = TCP +PORT = 8888 + +[merchantdb-postgres] +CONFIG = postgres:///auditor-basedb +SQL_DIR = $DATADIR/sql/merchant/ [merchant-exchange-default] +MASTER_KEY = M4FGP18EQFXFGGFQ1AWXHACN2JX0SMVK9CNF6459Z1WG18JSN0BG EXCHANGE_BASE_URL = http://localhost:8081/ CURRENCY = TESTKUDOS -[payments-generator] -currency = TESTKUDOS -instance = default -bank = http://localhost:8082/ -merchant = http://localhost:9966/ -exchange_admin = http://localhost:18080/ -exchange-admin = http://localhost:18080/ -exchange = http://localhost:8081/ +[bank] +HTTP_PORT = 8082 + +[libeufin-nexus] +DB_CONNECTION="postgresql:///auditor-basedb" + +[libeufin-sandbox] +DB_CONNECTION="postgresql:///auditor-basedb" + +[libeufin-bank] +CURRENCY = TESTKUDOS +DEFAULT_CUSTOMER_DEBT_LIMIT = TESTKUDOS:200 # dead +DEFAULT_ADMIN_DEBT_LIMIT = TESTKUDOS:2000 +REGISTRATION_BONUS_ENABLED = yes +REGISTRATION_BONUS = TESTKUDOS:100 +SUGGESTED_WITHDRAWAL_EXCHANGE = http://localhost:8081/ +SERVE = tcp +PORT = 8082 + +[auditor] +BASE_URL = http://localhost:8083/ +TINY_AMOUNT = TESTKUDOS:0.01 +PUBLIC_KEY = 0EHPW5WEKHXPPN4MPJNGA7Z6D29JP21GKVNV8ARFB1YW7WWJX20G +db = postgres + +[auditordb-postgres] +CONFIG = postgres:///auditor-basedb +SQL_DIR = $DATADIR/sql/auditor/ [coin_kudos_ct_1] value = TESTKUDOS:0.01 @@ -107,6 +128,7 @@ fee_withdraw = TESTKUDOS:0.01 fee_deposit = TESTKUDOS:0.01 fee_refresh = TESTKUDOS:0.01 fee_refund = TESTKUDOS:0.01 +CIPHER = RSA rsa_keysize = 1024 [coin_kudos_ct_10] @@ -118,6 +140,7 @@ fee_withdraw = TESTKUDOS:0.01 fee_deposit = TESTKUDOS:0.01 fee_refresh = TESTKUDOS:0.03 fee_refund = TESTKUDOS:0.01 +CIPHER = RSA rsa_keysize = 1024 [coin_kudos_1] @@ -129,6 +152,7 @@ fee_withdraw = TESTKUDOS:0.02 fee_deposit = TESTKUDOS:0.02 fee_refresh = TESTKUDOS:0.03 fee_refund = TESTKUDOS:0.01 +CIPHER = RSA rsa_keysize = 1024 [coin_kudos_2] @@ -140,6 +164,7 @@ fee_withdraw = TESTKUDOS:0.03 fee_deposit = TESTKUDOS:0.03 fee_refresh = TESTKUDOS:0.04 fee_refund = TESTKUDOS:0.02 +CIPHER = RSA rsa_keysize = 1024 [coin_kudos_4] @@ -151,6 +176,7 @@ fee_withdraw = TESTKUDOS:0.03 fee_deposit = TESTKUDOS:0.03 fee_refresh = TESTKUDOS:0.04 fee_refund = TESTKUDOS:0.02 +CIPHER = RSA rsa_keysize = 1024 [coin_kudos_5] @@ -162,6 +188,7 @@ fee_withdraw = TESTKUDOS:0.01 fee_deposit = TESTKUDOS:0.01 fee_refresh = TESTKUDOS:0.03 fee_refund = TESTKUDOS:0.01 +CIPHER = RSA rsa_keysize = 1024 [coin_kudos_8] @@ -173,6 +200,7 @@ fee_withdraw = TESTKUDOS:0.05 fee_deposit = TESTKUDOS:0.02 fee_refresh = TESTKUDOS:0.03 fee_refund = TESTKUDOS:0.04 +CIPHER = RSA rsa_keysize = 1024 [coin_kudos_10] @@ -184,8 +212,5 @@ fee_withdraw = TESTKUDOS:0.01 fee_deposit = TESTKUDOS:0.01 fee_refresh = TESTKUDOS:0.03 fee_refund = TESTKUDOS:0.01 +CIPHER = RSA rsa_keysize = 1024 - -[benchmark] -BANK_DETAILS = bank_details.json -MERCHANT_DETAILS = merchant_details.json |