rustpad icon indicating copy to clipboard operation
rustpad copied to clipboard

Configuration option for Sqlite retention period?

Open poVoq opened this issue 3 years ago • 2 comments

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!

poVoq avatar Jan 03 '23 12:01 poVoq

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 `

hanisntsolo avatar Aug 27 '24 18:08 hanisntsolo

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

hanisntsolo avatar Aug 30 '24 15:08 hanisntsolo