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