feat: cleanup-wallets cli command (#2176)
* feat: `cleanup-wallet` cli command `lnbits-cli db cleanup-wallets` removes all wallets that never had an transaction. this helps against spammers creating random wallets, eventually slowing down the db. * add commands * add to example env * db_versions was used in app * add delta as cli argument * use days unit * simplify cli argument name (cleanup_wallet_days -> days)! --------- Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com> Co-authored-by: Pavol Rusnak <pavol@rusnak.io>
This commit is contained in:
parent
e1bb2113ed
commit
1d2b939e06
4 changed files with 73 additions and 7 deletions
|
|
@ -214,3 +214,6 @@ ENABLE_LOG_TO_FILE=true
|
|||
# https://loguru.readthedocs.io/en/stable/api/logger.html#file
|
||||
LOG_ROTATION="100 MB"
|
||||
LOG_RETENTION="3 months"
|
||||
|
||||
# for database cleanup commands
|
||||
# CLEANUP_WALLETS_DAYS=90
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue