mirror of
https://github.com/matze/wastebin.git
synced 2026-04-25 16:45:59 +03:00
[GH-ISSUE #54] Feature Request [Force Expiration] #42
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/wastebin-matze#42
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jk-nia on GitHub (May 31, 2024).
Original GitHub issue: https://github.com/matze/wastebin/issues/54
Hey folks,
Is it possible to add a flag that removes the never expires option so one either has to pick an expiration time (maybe max also controllable) or burn after read?
Many thanks in advance
@denissteinhorst commented on GitHub (May 31, 2024):
+1 on that one!
@matze commented on GitHub (Jun 2, 2024):
Sounds reasonable, will definitely look into that ASAP. Question is if that should be yet another environment variable or if I should bite into the sour apple and allow configuration via a file.
@denissteinhorst commented on GitHub (Jun 3, 2024):
Well I mean, having the freedom to completely decide what expiration-options one would like to have, would indeed be a beautiful addition. If you take the Challenge, I imagine to see the various options like:
If ExpirationValue is set to false; the Option is just "not present" in the UI. If set to an integer it's "that value".
maybe you could even expose those config somewhere so one could change em on the fly?
aaanyway: What ever path you might choose, thanks for your quick reply on that topic mate! 🥇
@HeapUnderfl0w commented on GitHub (Jul 6, 2024):
To bikeshed a tiny bit here: i usually am fine with just having stuff like this as an environment, as most service managers (systemd, docker, etc) allow loading .env files.
On the other hand a core issue is that env vars do not lend themselves well to multiple values and some custom format has to be invented and documented (even if its just
"valA,valB")@kamaradski commented on GitHub (Jul 26, 2024):
Before i open a new feature request for something that actually lured me here, i like to confirm the scope of the work done on this feature request as we might overlap.
I was looking for a way to a) freely config the expiration for each individual item, like @denissteinhorst mentioned above, or b) a way to statically configure the expirations a bit more to my liking (example: add
1 month, and maybe2 weeks).in case something like this is already part of the works related to this request, i can spare the extra feature request, otherwise i would be happy to open a new one specifically for this topic.
On topic and for what it's worth:
I do not have a usecase to disable the "never expire" option, but i do like the idea of being able to do so. Even more useful for me would be to NOT have "never expire" as default option. People tend to not change it and clutter the server with useless pastes.
@cgzones commented on GitHub (Sep 22, 2024):
When setting the environment variable
WASTEBIN_MAX_PASTE_EXPIRATIONto a limited value thenever expiresoption is not available.@matze commented on GitHub (Feb 25, 2025):
Okay guys, despite what was written here and in #65, I drafted something a bit more radical in this wip branch because I'm breaking a few things already, so why not here as well, right? Essentially, this replaces the current
WASTEBIN_MAX_PASTE_EXPIRATIONby a fully customizable list of expiration values. My only concern is that anything longer than a week will be rendered imprecisely (i.e. how many seconds are in a month and year …).