Simon Volpert httpay / master httpay.cfg.sample
master

Tree @master (Download .tar.gz)

httpay.cfg.sample @masterraw · history · blame

# This is the configuration file for httpay. Copy it to "httpay.cfg" and edit
# it to your preferences.
# The directory in which it is located will be used as the data and state
# directory, and should be writable. Common locations include ".httpay" or
# ".config/httpay" in your home directory.
# Except when indicated, invalid or missing values will cause default values
# to be used.

# Set this to the extended public key (xPub) of your receiving wallet, which
# will be used to generate a fresh receiving address for every payment.
# This option is mandatory.
xpub=

# Set this to the default price any given file should be in satoshis
# (1/100,000,000 of a BCH).
default_price=100000

# The network port httpay will listen for incoming connections on.
listening_port=8000

# Set this to "yes" to have a single payment blanket unlock all paywalled
# files across the entire site.
global_unlock=no

# Block explorer API options

# You can replace these with parameters for your preferred block explorer.
# Any occurrences of the string '{address}' will be replaced with the queried
# address. Check the relevant block explorer's API documentation.

# The URL to GET data from.
api_url=https://bch.fullstack.cash/v6/fulcrum/balance/{address}

# The JSON hierarchy representing the address balance, nested fields delimited
# with dots.
api_key_balance=balance.confirmed

# The same, but for unconfirmed balance, if and only if the balance key above
# doesn't already include it.
api_key_unconfirmed=balance.unconfirmed

# The unit the balance is represented in ("native" or "satoshi").
api_unit=satoshi

# Be wary of block explorer API rate limits. If you perform many requests per
# minute, consider running your own private block explorer instance.