# This file is in the public domain.

# These are default/sample settings for a merchant backend.


# General settings for the backend.
[anastasis]

# Use TCP or UNIX domain sockets?
SERVE = tcp

# Which HTTP port does the backend listen on?  Only used if "SERVE" is 'tcp'.
PORT = 9977

# Which IP address should we bind to? i.e. 127.0.0.1 or ::1 for loopback.
# Can also be given as a hostname.  We will bind to the wildcard (dual-stack)
# if left empty.  Only used if "SERVE" is 'tcp'.
# BIND_TO =


# Which unix domain path should we bind to? Only used if "SERVE" is 'unix'.
UNIXPATH = ${ANASTASIS_RUNTIME_DIR}/httpd/anastasis-http.sock
# What should be the file access permissions (see chmod) for "UNIXPATH"?
UNIXPATH_MODE = 660

# Which database backend do we use?
DB = postgres

# How long after they expire are backups, truths and challenge codes kept
# before "anastasis-dbinit -g" collects them?  Keeping them longer than
# necessary means keeping user data longer than necessary.
# GC_BACKUP_GRACE = 6 months

# How long are payment records that never resulted in a payment (or that were
# refunded) kept before "anastasis-dbinit -g" collects them?
# GC_PAYMENT_RETENTION = 10 years

# Display name of the business running this anastasis provider.
# BUSINESS_NAME = ...

# Currencies this provider prices its service in, separated by ";".  The
# first one is the primary currency: it is what the scalar fields of
# /config report, for the benefit of clients that predate multi-currency
# support.  Every priced option below must give a price in exactly these
# currencies --- anastasis-httpd refuses to start otherwise, so that a
# user cannot discover during recovery that some step is unavailable in
# the currency they hold.
#
# May be omitted by a provider that prices in a single currency; it is
# then taken from the fees themselves.
# CURRENCIES = EUR;CHF;USD

# Annual fee for an account, one amount per currency in CURRENCIES.
# ANNUAL_FEE = EUR:0.1;CHF:0.1;USD:0.12

# Number of policy uploads included in one annual fee payment
ANNUAL_POLICY_UPLOAD_LIMIT = 64

# Insurance
# INSURANCE = EUR:1.0;CHF:1.0;USD:1.2

# Fee for one upload.
# TRUTH_UPLOAD_FEE = EUR:0.1;CHF:0.1;USD:0.12

# Each authorization method is priced the same way, in its own
# [authorization-*] section.  A method may also be free, which is what an
# IBAN challenge usually wants: the wire transfer the user has to make in
# order to authenticate is already the cost of using it.  Free is written
# as an empty value, or as a zero in every currency:
#
#   [authorization-iban]
#   ENABLED = YES
#   COST =
#
# What is *not* allowed is charging in some currencies and not in others,
# e.g. "COST = EUR:1;CHF:0": that does not price the service, it prices
# the user's choice of currency, and anastasis-httpd refuses to start on
# it.  Note that the amount the user must transfer for an IBAN challenge
# is a separate option and stays a single amount, since a bank account
# has one currency.


# Upload limit per backup, in megabytes
UPLOAD_LIMIT_MB = 16

# Fulfillment URL of the ANASTASIS service itself.
FULFILLMENT_URL = taler://fulfillment-success

# Server salt 16 Byte
# PROVIDER_SALT = gUfO1KGOKYIFlFQg


# Directory with our terms of service.
TERMS_DIR = ${DATADIR}tos/

# Etag / filename for the terms of service.
TERMS_ETAG = 0


# Directory with our privacy policy.
PRIVACY_DIR = ${DATADIR}pp/

# Etag / filename for the privacy policy.
PRIVACY_ETAG = 0


[anastasis-merchant-backend]
# Base URL of our payment backend
# PAYMENT_BACKEND_URL = http://localhost:9976/

# API Key to send to the backend for authorization
# API_KEY =
