Configuration option for Sqlite retention period?
It seems like when using Sqlite to retain pads beyond the memory storage limit they are stored indefinitely?
Would it be possible to add some configuration option to discard old pads after 30 days or so from the Sqlite storage?
Thanks!
Really nice project by the way!
I was trying to use the sqlite but wasn't able to use in docker-compose so I used postgress instead. for anyone who might stumble upon this ever.
`version: '3.8'
services: rustpad: image: ekzhang/rustpad:latest container_name: rustpad restart: always ports:
- "3030:3030" volumes:
- "/media/hanisntsolo/WDBlue_ssd_hanis/docker/volumes/jupyter/notebooks/jupyter-lab/rustpad_db/:/persist" environment:
- EXPIRY_DAYS=365
- PORT=3030
- RUST_LOG=TRACE
- SQLITE_URI=sqlite:///persist/rustpad.db `
It seems like when using Sqlite to retain pads beyond the memory storage limit they are stored indefinitely?
Would it be possible to add some configuration option to discard old pads after 30 days or so from the Sqlite storage?
Thanks!
Really nice project by the way!
- EXPIRY_DAYS=365