CorentinTh / enclosed

Minimalistic web app designed for sending private and secure notes.
https://enclosed.cc
Apache License 2.0
682 stars 51 forks source link

Set default 'expiration delay' #322

Closed SamKr closed 4 days ago

SamKr commented 4 days ago

What type of request is this?

Enhancement of an existing feature

Clear and concise description of the feature you are proposing

Currently it's possible to enable 'delete after reading' as an env variable, which is great. I'd like to also be able to set 'expiration delay' to another default, in my case '1 day'.

Additional context

1 hour is very short if a user isn't paying enough attention to the settings.

Validations

CorentinTh commented 4 days ago

Hello @SamKr

Thank you for the request :ok_hand: I've added the PUBLIC_DEFAULT_NOTE_TTL_SECONDS env variable to configure the default expiration delay of the notes in #323 It's now available for version >= 1.10.0

More details in the documentation : https://docs.enclosed.cc/self-hosting/configuration

SamKr commented 4 days ago

That is crazy fast 😁 Thanks! Works like a charm