Files
thehub/wallet-backup-server/README.md
T

1.2 KiB

Backup server.

The Flowee backup server is specialized in taking POST requests to submit formatted wallet backups, verifying they are encrypted and signed. And using GET/HEAD to fetch those files based on their identity (bitcoin cash address).

By default this server will simply bind to localhost, port 80. It has no support for SSL. To plug it into your bigger website and use SSL (useful for privacy reasons) you can run it behind an NGINX proxy.

nginx config block:

    location /md {
        proxy_pass http://localhost:42121/;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }

The example walletBackup.conf file can be placed in the default XDG place for the user it will be executed on, for instance /home/flowee/.config/flowee/walletBackup.conf or /etc/xdg/flowee/walletBackup.conf or you can alter the systemd file to pass the path.

An example logs.conf can be;

/home/flowee/.config/flowee/wallet-backup-server/logs.conf

channel file
   option timestamp time date
   option path /home/flowee/logs/backupServer.log`