Commit graph

132 commits

Author SHA1 Message Date
/rootzoll
742da1b9d7
LNbits Admin Page to allow install extensions (#4054)
* add user id to status
* activate Admin page on install
2023-08-01 22:38:32 +02:00
/rootzoll
9878ea8a02
misc updates for v1.10.0rc1 (#4001)
* add lndg update info

* mark v1.10.0rc1 version

* Thunderhub v0.13.19

* changing default repo to raspiblitz org

* LNbits 0.10.9

* lnbits dont delete user on "off"

* BTCPayServer 1.10.3

* switch default branch to v1.10
2023-07-08 19:38:08 +02:00
rootzoll
cfe034e0f9 #3845 reset virtual env after poetry installs 2023-05-17 18:04:41 +02:00
/rootzoll
7335476a07
lnbits 0.10.6 update (#3814) 2023-05-09 23:13:31 +02:00
openoms
9c25636217
fix: remove lnbits user when off, improve checks (#3798) 2023-05-08 21:33:20 +02:00
Stephan Oeste
4c1c1349d3
Bump lnbits to 0.10.5 and add path to poetry in systemd script (#3787) 2023-05-05 14:59:05 +02:00
dni ⚡
8109114d9e
fix reverse proxz issue, bind to 0.0.0.0 (#3776) 2023-04-28 10:58:36 +02:00
dni ⚡
42126c47eb
bump lnbits to 0.10.4.1 (#3769)
:) updates!
2023-04-24 00:38:11 +02:00
dni ⚡
1ae636b265
update lnbits to 0.10.2 and use poetry instead of venv (#3703) 2023-03-13 12:47:47 +01:00
openoms
9672c47652
fix setting LND_REST_ENDPOINT (#3689) 2023-03-08 13:03:00 +01:00
/rootzoll
92f69bb29e
3524 Re-Add IP2Tor (#3643) 2023-02-03 17:44:24 +01:00
/rootzoll
504cef36c1
#3632 update lnbits to 0.9.6 (#3633) 2023-01-25 20:17:37 +01:00
/rootzoll
41c0aa5c66
#3524 Deactivate IP2Tor from SSH menus & docs (#3549)
* deactivate in subscription menu

* remove IP2Tor options from LNbits

* Add to CHANGES

* remopve from btcpayserver

* deactivate LNDREST & SPHINX

* remove from README
2022-12-19 17:18:17 +01:00
/rootzoll
7ac2d214f6
#3429 app bonus scripts all give version information for WebUI (#3518)
* add version to template

* add version to RTL

* fix RTL verison

* add lnbits version

* add version to mempool

* add version to thunderhub

* add version to btc rpc explorer

* add version to BTCpayServer
2022-12-14 11:54:06 +01:00
ChuckNorrison
1c26120056
LNBits Backup and Restore database (#3412)
* LNBits Backup and Restore database

Add Backup and Restore methods and  menu entries

* LNBits backup target

based on blitz.backupdevice.sh switch backup target to /mnt/backup_manual per default

* Add postgresql script

Script to install or uninstall postgresql

Backup a single database with sql dump file

Restore a single database from sql dump file

* Unpack backup file only for SQLite

For postgresql just use the dedicated script

* Support multiple backup files

After backup file was written, keep only last 3 backups

Restore the recent backup found

* improve backup and restore with config and path

make use of raspiblitz config to retrieve db state for backup and restore

default manual backup path set to /mnt/hdd/app-data/backup

* add info command to postgresql script

retrieve database directory and database names

* update backup path for postgresql script

default path is /mnt/hdd/app-data/backup

this will survive reflash sd card

* improve user feedback

* add dialog for restore and improvements

dialog with confirm restore process

timestamps for backup file names

small improvements for user feedback

only resume if unpack backup succeed

* fix sqlite backup file name

* fix restore path and permissions

* add dialog to choose backup from a list

list all available backups to start restore in a dialog

* fix backup list for sqlite

* fix restore menu

* Update LNBits version with bigint fix for migration

if migrate to postgresql, use lnbits version with latest bigint fixes

* Update bonus.postgresql.sh

* fix postgres backup permissions
2022-12-14 10:40:15 +01:00
/rootzoll
fb9283a06c
Fatpack WebUI Apps (#3514) 2022-12-13 15:28:05 +01:00
/rootzoll
d7d1c40866
#3505 lnbits PostgresSQl migration finalization (#3507)
* fix missing dependencies

* LNBits SQLite to PostgreSQL migration (#3411)

* LNBits SQLite to PostgreSQL migration

New installations with PostgreSQL configuration, existent data with SQLite.

convert script needs a full start of LNBits prior migrating the old sqlite db's.

User can migrate from raspiblitz menu.

* only fix postgres if it needs to

check for symbolik link of postgres default directory or desired postgres folder

btcpayserver and lnbits could use postgresql

new script to install or uninstall postgresql

* fix typos

* silent apt remove

* fix removed function postgresConfig

call bonus.postgresql.sh to setup PostgreSQL

* Support outdated installation

old installations should upgrade to new tag first

create new data directory /mnt/hdd/app-data/LNBits/data

* Improve migration

Make it a bit more user friendly and prepare for a worst case to revert the migration if something fails unexpectedly

make use of sync method for preparation

* Rework migration workflow

Cant wait for lnbits to start when ExecStartPre is used.

We need a full start of lnbits prior migration, so make use of lsof to check for ports and wait.

dont forget to start postgres service after installation. dont forget to stop postgres after uninstall

* Dont overwrite the backup file

if we start migrate again, the sqlite backup should not be overwritten with postgres data. Keep the backup file.

* add migrate message to menu

add the hint to revert migration manually after migrate script executed

* fix install and data directory

lnbits always needs a data directory

* clean up lnbits settings for migration

even if postgresql is already running, we can extract sqlite backup and start migrate

remove migrateMsg duplicate

* preserve database for reflash

drop database only for migrate, not for regular installations

* set blitz config for LNBits

fix drop database only for migrate, not for regular installations

* Add confirmation dialog and automatic revert

User needs to confirm the process, this will eliminate missclicks

add a migrate revert function to automatically revert if something unexpected happens

let the user call the function manually

* check conv.py on success or revert

if the conversion script fails, revert automatically

* Improve revert message

Do not print the revert hint message if current database is SQLite

* fix read config LNBitsDB

* fix unpack backup

Folder LNBits should never block the restore of backup. Happened after multiple migrations and revert.

* Wait for lnbits v0.9.5

Set commit version with fix for postgresql database and BIGINT for amounts for migrate

Can be set to v0.9.5 tag or above later

* improve migrate backup handling

revert to the current backup and not to the previous backup.

No need for the failed folder state

user message with backup file path

* check psql version once

* supress expected errors

if database exists

Co-authored-by: /rootzoll <christian@geektank.de>

* fix error output on status

Co-authored-by: ChuckNorrison <2964146+ChuckNorrison@users.noreply.github.com>
2022-12-10 00:04:15 +01:00
/rootzoll
9d23c63c38
#3313 & #3230 lndg final (#3506)
* Integrate LNDg to Raspiblitz (#3313)

* cl.hsmtool: fix password display

* add clearnet fallback for tor keys

* fix CLN wallet reset (#3296)

* cln: unify and improve the resetWallet function
previously the old config and channel database could have been left
behind when using SEEDRESTORE and FILERESTORE
* prompt to save the wallet password for backup

* change default branch to v1.8 (#3306)

* Adds install script for LNDg (https://github.com/cryptosharks131/lndg)

Install script creates user lndg and installs LNDg in /home/lndg/lndg,
uses systemd for the backend, and uses nginx and uwsgi for the gui.

Install script will check for tor and enable tor
if "run behind tor" is on.

Updates menu settings for easy access to the script settings

* Creates bonus.lndg.sh script for installing LNDg
Adds LNDg to list of apps in "SERVICES"
Adds LNDg to UPDATES when installed
Adds LNDg to menu when installed

Fixed typos/errors, tested and works!

* LNDg menu install. Added ssl, ssl over tor, and standardized nginx files. Tests Good.

* FAQ.cln: poncho, CLN cheatsheet, extract privkey

* #3286 fix loca IP

* fix #3312

* fix lnbits update options (#3307)

* Integrates LNDg to Raspiblitz
Fixes issues with python and python3 (see comments on PR).
Adds option to keep or delete database on both uninstall and install with existing database.

Fixes issues with python and python3 (see comments on PR).
Adds option to keep or delete database on both uninstall and install with existing database.

Update 00settingsMenuServices.sh

Update info menu for LNDg

Adds username and instructions on how to change username

* Update bonus.lndg.sh

* Install LNDg script
Forces yes on install question

* Update blitz.shutdown.sh

* Update bonus.lndg.sh

* Update bonus.lndg.sh

* Update bonus.lndg.sh

* Update bonus.lndg.sh

Co-authored-by: openoms <oms@tuta.io>
Co-authored-by: openoms <43343391+openoms@users.noreply.github.com>
Co-authored-by: Dipun Mistry <dipunm@gmail.com>
Co-authored-by: rootzoll <christian@geektank.de>

* added documentation

* #3230 change password B

* #3230 fix to version 1.4.0

Co-authored-by: allyourbankarebelongtous <100060902+allyourbankarebelongtous@users.noreply.github.com>
Co-authored-by: openoms <oms@tuta.io>
Co-authored-by: openoms <43343391+openoms@users.noreply.github.com>
Co-authored-by: Dipun Mistry <dipunm@gmail.com>
2022-12-09 21:49:44 +01:00
/rootzoll
f1bba1de0e
simplify lnbits systemd exec line (#3477) 2022-11-26 18:02:51 +01:00
openoms
1f99ac5d0a
Testnets LNbits fix (#3422) 2022-11-16 18:00:35 +01:00
ChuckNorrison
30211575c3
branch master does not exist (#3389)
githubRepo lnbits-legends gets redirected to lnbits

the default branch of lnbits is main
2022-11-04 15:00:37 +00:00
ChuckNorrison
3b0fdc5117
fix ufw delete rule (#3410)
command is ufw delete not delete ufw
2022-11-04 14:45:45 +00:00
openoms
cf5746ca76
lnbits update to v0.9.4 2022-10-15 11:20:20 +01:00
cercatrova
469badb8e5
Update lnbits (#3327) 2022-09-28 14:58:47 +02:00
openoms
36057e6f87
fix lnbits update options (#3307) 2022-09-13 19:16:28 +02:00
rootzoll
8f3257cd27 lnbits 0.9.1 2022-07-28 16:08:15 +02:00
rootzoll
aa474b4fec sudo -u lnbits 2022-07-28 15:15:43 +02:00
rootzoll
92fcd8fe27 try lnbits 0.9.0 2022-07-28 15:04:32 +02:00
rootzoll
2fd904e728 LNbits back to 0.8.0 2022-07-28 00:01:26 +02:00
rootzoll
4ac031abcd Update LNbits to 0.9.0 2022-07-27 22:33:38 +02:00
rootzoll
60d357d753 #2071 lnbits update to 0.8.0 2022-05-17 21:53:05 +02:00
/rootzoll
fd8d880c09
Apiscripts (#3093) 2022-05-05 10:59:50 +02:00
openoms
723d385bb7
lnbits: fix cl funding source on restart #3007 2022-03-06 13:31:51 +00:00
rootzoll
440449c8d8 Update LNbits 0.7.0 2022-02-19 11:21:35 +01:00
openoms
fbf6db75ab
run blitz.display.sh with sudo (#2957) 2022-02-13 13:23:34 +01:00
openoms
d7d127362a
lnbits update to 0.6.0 #2792 2022-02-10 15:46:12 +00:00
openoms
80730729a2
#2556 modify usergroup as part of switch 2022-02-09 19:12:59 +00:00
openoms
04a3a5a440
lnbits: add debug output to check permissions 2022-02-06 19:56:56 +00:00
openoms
18e75b7237
lnbits: update for bitcoinpos
add dep secp256k1 #2792
2022-01-31 22:36:40 +00:00
openoms
53441e3854
lnbits: improve uninstall sequence 2022-01-31 10:24:54 +00:00
rootzoll
a2543cfae0 #2792 test quart remove 2022-01-13 23:46:49 +01:00
openoms
4f6751080c
lnbits: fix typos 2022-01-11 14:55:06 +00:00
/rootzoll
3e831918ba
#2556 change to uvicorn (#2844) 2021-12-23 14:03:46 +01:00
rootzoll
67878d87ad #2556 lnbits switch to fastAPI 2021-12-21 21:49:45 +01:00
rootzoll
ab53050e3f make new scripts use blitz.conf.sh 2021-12-18 00:38:49 +01:00
/rootzoll
88d77d4197
fix #2792 & #2556 LNbits c-lightning (#2808) 2021-12-16 20:10:03 +01:00
/rootzoll
85b0c97d41
big merge of 2388redis & 2669tor (#2790) 2021-12-14 23:34:35 +01:00
openoms
cac14efc46
rename all cln / CLN to cl / CL except CLNETWORK 2021-09-26 10:30:09 +01:00
MR
8daad18e10
Corrected typo in config scripts for lnbits and btcpayserver Webrowser > Web Browser (#2406)
Co-authored-by: Mark Williams <mark.williams@legroomagency.co.uk>
2021-08-19 22:06:27 +02:00
Fitti
ac72abd3fa
Fix LNbits lnurl support over tor (#2485) 2021-08-19 16:41:50 +02:00