Warning: this is highly experimental
It assumes you're already running BTCPay Server somehwere.
Create a user and group:
sudo adduser patron --disabled-password
To login as this user:
sudo -s
su - patron
Clone the repo:
git clone https://github.com/JeffVandrewJr/patron.git
Create a data and config dir:
mkdir config
mkdir data
Create config/librepatron.env
and symlink it:
cd patron
ln -s ~/config/librepatron.env librepatron.env
Install PyEnv using these instructions
Install Python 3.7.1: pyenv install 3.7.1
Install dependencies (see development docs).
Migrate the database (see development docs).
Move the database to ~/data and symlink it:
mv app.db ~/data
ln -s ~/data/app.db app.db
Try running server as the patron
user (use start.sh
from this gist):
./start.sh
It should show up on port 8006. If it works.
Setup https as root
:
sudo certbot certonly -d patron.example.com
Populate /etc/nginx/sites-available/patron.example.com
using this gist.
Start nginx:
sudo -s /etc/nginx/sites-available/patron.example.com /etc/nginx/sites-enabled/patron.example.com
sudo systemctl nginx restart
Populate /etc/systemd/system/patron.service
from this gist.
Start it as a service as root
:
systemd start patron
journalctl --follow -n 100 --unit patron