Files
bitcoin-tutorials/BTCPayServer

Install BTCPayServer on the RaspiBlitz

This guide will make you have BTCPayServer running on your node using the already synced bitcoin blockchain and local LND node and benefit from the backup and security features of RaspiBlitz and the stock LND.
No added synchronization needed.

Requirements:

  • a domain name or dynamic DNS
  • the ports 80, 44 and 9735 forwarded on the router to the RaspiBlitz LAN IP

Tested successfully on:

  • RaspiBlitz v1.3
  • RPi4 4GB (2GB RAM should be sufficient)

Automated Script

To download and run:
wget https://raw.githubusercontent.com/openoms/bitcoin-tutorials/master/BTCPayServer/btcpay_to_blitz.sh && bash btcpay_to_blitz.sh

Manual instructions

Setting up BTCPayServer

  • Go to your domain

  • Register the first (administrator) account

  • Create a Store

  • In Store settings set up the derivation scheme (add an xpub)

  • Set up LN with the connection string:
    type=lnd-rest;server=https://127.0.0.1:8080/;macaroonfilepath=/home/admin/.lnd/data/chain/bitcoin/mainnet/admin.macaroon;allowinsecure=true

  • Find more detailed info on https://docs.btcpayserver.org/btcpay-basics/gettingstarted


Getting help

  • if Nginx breaks: sudo nginx -t is a very useful debug tool. Runs a test and gets detailed info on which line is problematic.