/
config.toml
112 lines (89 loc) · 4.6 KB
/
config.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# SatSale Config :: Configure payment nodes and SatSale settings
payment_methods = ["bitcoind"]
# SatSale can connect to your own bitcoin/lnd/clightning node, with the correct connection details set in this config.
# Otherwise, you can just use `payment_method=['xpub']` with an `xpub=...` (found in your wallet) to derive onchain addresses.
## BITCOIND :: Add "bitcoind" to payment_methods and from ~/.bitcoin/bitcoin.conf
# use either username / password pair or rpc_cookie_file
# wallet (empty "" if your bitcoind node has a single wallet, OR wallet name/path as shown in `bitcoin-cli listwallets`)
[bitcoind]
host = "127.0.0.1"
username = "bitcoinrpc"
password = ""
rpcport = "8332"
#rpc_cookie_file =
wallet = ""
## XPUB :: Add "xpub" to payment_methods and enter your xpub below.
# You should strongly consider running a node and using it to verify payments rather than trusting block explorers.
# You MUST ensure you manually confirm the first address matches what you expect in your wallet! See output.
[xpub]
xpub = ""
bip = "BIP84" # For bc1q addresses (xpub will start like `zpub..`). Can use BIP44 for 1egacy.
## LND :: Add "lnd" to payment_methods
# You can display your node connection so users can open channels with you by setting
# node_info="uri" (manually) or true (fetch if macaroon has access to `getinfo`)
[lnd]
host = "127.0.0.1"
lnd_dir = "~/.lnd/"
lnd_rpcport = "10009"
lnd_macaroon = "invoice.macaroon"
#lightning_address = None #e.g name@your.satsale.domain (think this requires https url)
#lightning_address_comment = None # Defaults to: "Thank you for your support <3"
## CLIGHTNING :: Add "clightning" to payment_methods
# If remote clightning, make sure `ssh -nNT -L {local_lightning-rpc}:{remote_lightning-rpc} {tunnel_host} -p {tunnel_port}`
# creates a lightning-rpc unix domain socket. (use full paths local: /home/install/satsale/lightning-rpc)
# You can display your node connection so users can open channels with you by setting
# node_info="uri" (manually) or true (fetch if macaroon has access to `getinfo`)
[clightning]
clightning_rpc_file = "/home/user/.lightning/bitcoin/lightning-rpc"
[satsale]
#### Connect To Remote Node ####
# Either SSH or TOR should be used to
# to tunnel/relay communications to the remote node
# SSH tunnel to node (recommended)
# Make sure this command works `ssh HOST@IP -q -N -L 8332:localhost:8332 -p PORT`
# Leave host="127.0.0.1" and you will be able to see your node as if it were local
#tunnel_host = None # Format: "HOST@IP"
#tunnel_port = "PORT" #defaults to 22, if left blank
# TOR hidden service to node (see docs for how to set up),
# Currently only works for bitcoind.
# Set `tor_bitcoinrpc_host="http://if...dwr.onion"` in bitcoind section above:
# A tor proxy, default 127.0.0.1:9050 (for Tor Browser use "127.0.0.1:9150")
#tor_proxy = None
## !! Once up to here, you should now test your node configuration !!
# SatSale API key will be stored in this file
api_key_path = "SatSale_API_key"
# Dust limit for onchain payments in BTC. Don't generate onchain invoices
# below this value.
onchain_dust_limit = 0.00000546
# You can display your node uri so users can open channels with you by setting
# node_info="uri" (manually) or true (use `admin.macaroon` to fetch `getinfo`)
#node_info = "uri"
# Check for payment every xx seconds
pollrate = 1
# Payment expires after xx seconds
payment_timeout = 3600
# Required confirmations for a payment
required_confirmations = 2
# Global connection attempts (Note: SatSale has 60s breaks after the 5th attempt)
# If you're getting worker timeouts, try launch with a long `--timeout`.
connection_attempts = 15
# Console log level (DEBUG, INFO, WARNING, ERROR)
loglevel = "DEBUG"
# Generic redirect url after payment
redirect = "https://github.com/nickfarrow/satsale"
# Currency and exchange rate provider
base_currency = "USD"
currency_provider = "COINGECKO" # Supported: COINDESK | COINGECKO
# Multiplier added on top of BTC / fiat exchange rate. Allows to give discount or add extra commission.
# Values above 1.00 gives discount, values below add extra comission.
bitcoin_rate_multiplier = 1.00
# Weak Hands Mode - Automatically swap LN-BTC -> L-USDT using sideshift.ai
# https://blockstream.com/liquid/
# Change lnd_macaroon='admin.macaroon', as you will also need to be able to spend with your lnd certificates.
# This is NOT a trustless swap. Exchange is carried out using sideshift.ai, you bear all associated exchange risks.
#liquid_address = None
# Paynym - Display your paynym on your SatSale donation page
#paynym = "+royalcell593"
# DO NOT CHANGE THIS TO TRUE UNLESS YOU WANT ALL PAYMENTS TO AUTOMATICALLY
# BE CONSIDERED AS PAID.
free_mode = false