forked from SatSale/SatSale
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
87 lines (63 loc) · 2.76 KB
/
config.py
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
# SatSale needs to connect to your bitcoin/lnd node,
# with the correct RPC port(s) as set in this config.
# Connecting through local host (see below if connecting to remote node):
host = "127.0.0.1"
rpcport = "8332"
# From ~/.bitcoin/bitcoin.conf
username = "bitcoinrpc"
password = "rpcpassword"
# Wallet (empty "" if your node has a single wallet, OR wallet name/path as shown in `biitcoin-cli listwallets`)
wallet = ""
# File in which API key will be stored
api_key_path = "SatSale_API_key"
#### Connect To Remote Node ####
# Can use SSH or TOR
# to tunnel/relay ports required to talk to the node via RPC (gRPC for lightning)
# SSH tunnel to node
# Make sure this command works `ssh HOST@IP -q -N -L 8332:localhost:8332`
# Use host = "127.0.0.1" and you will be able to see your node on 8332
tunnel_host = None # "HOST@IP"
# or tor hidden service for RPC (see docs for how to set up), need onion:
tor_bitcoinrpc_host = None # e.g. "http://if...dwr.onion"
# and a tor proxy, default 127.0.0.1:9050 (for Tor Browser use "127.0.0.1:9150")
tor_proxy = None
#### Payment method ####
pay_method = "bitcoind"
## Lightning
# Switch payment_method to lnd if you want to use lightning payments instead. And uncomment lnd_dir.
#pay_method = "lnd"
# To find (or copy from remote nodes) the macaroon and TLS certs
#lnd_dir = "~/.lnd/"
# lnd RPC port and lnd macaroon (uncomment)
#lnd_rpcport = "10009"
#lnd_macaroon = "admin.macaroon"
# Or clightning
#pay_method = "clightning"
# If remote clightning, make sure `ssh -nNT -L lightning-rpc:{clightning_rpc_file} {tunnel_host}`
# creates a lightning-rpc unix domain socket
#clightning_rpc_file = "/home/user/.lightning/lightning-rpc"
#######################
# Check for payment every xx seconds
pollrate = 15
# Payment expires after xx seconds
payment_timeout = 60*60
# Required confirmations for a payment
required_confirmations = 2
# Global connection attempts
connection_attempts = 3
# 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
# Lightning Address e.g. [email protected] (think this requires https url)
lightning_address = None
lightning_address_comment = None # Defaults to: "Thank you for your support <3"
# 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
# DO NOT CHANGE THIS TO TRUE UNLESS YOU WANT ALL PAYMENTS TO AUTOMATICALLY
# BE CONSIDERED AS PAID.
free_mode = False