Yureien / YABin

Yet another pastebin, simple but feature-rich, along with a CLI client
https://bin.sohamsen.me/
MIT License
168 stars 23 forks source link

Some Questions #14

Closed kayvanaarssen closed 1 year ago

kayvanaarssen commented 1 year ago
  1. Is it possible to set an expire date / X days (hours etc.) from creation
  2. Login options to manage links / paste
  3. Will everything be wiped when you restart for example the docker container

Maybe you can explain these things a bit more in the Readme :-D

Thanks for the good work!

Yureien commented 1 year ago
  1. Yep! Checkout the "Expires in" parameter on the right side (example here: https://bin.sohamsen.me/).
  2. Not yet, but I plan to implement that feature soon.
  3. Not really, restarting preserves data (assuming you are not removing the volumes themself). The yabin container can be completely removed and added again without any loss of data. The postgresql database is what holds all the data. Make sure to bind a volume (as in the docker-compose.yml file), and do not remove that volume. Restarting won't affect it.
kayvanaarssen commented 1 year ago

@Yureien Thanks! Do you have environment variables to force the expire of links etc. So we can set this at default. We use for example Password Pusher already. Here you can set those things in the .env so its forced at default but you are able to change.

For 2. How can we delete / manage old links etc. at this time? Purge the DB etc? Or what are the options?

Yureien commented 1 year ago

@kayvanaarssen There is no option to set a default expiry of links for now. I might implement that sometime in the future though. Feel free to open a PR if you need it now!

For now, the only way to purge old links is to delete them manually for the DB.

I have just added a user login/logout feature that enables editing pastes. I plan to set defaults such as a dashboard to view pastes, delete them and set defaults (such as expiry, encryption settings, etc.), which will be added in a future update!

Yureien commented 1 year ago

@kayvanaarssen As of the latest version, it is possible to set a default expiry.

kayvanaarssen commented 1 year ago

@kayvanaarssen As of the latest version, it is possible to set a default expiry.

Awesome! Thanks