mirror of
https://github.com/matze/wastebin.git
synced 2026-04-26 00:55:59 +03:00
[GH-ISSUE #129] Question about .env Files #82
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/wastebin-matze#82
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 @MickLesk on GitHub (Mar 6, 2025).
Original GitHub issue: https://github.com/matze/wastebin/issues/129
Hey,
Im the maintainer of community-scripts.
You have published yesterday the v.3.0.0 😄
We get an Issue with the Script, because you doesnt serve the tar.gz (https://github.com/community-scripts/ProxmoxVE/issues/2881)
Basically, this is not a problem, I have already fixed it quickly. (not pushed yet)
Old:
wget -q https://github.com/matze/wastebin/releases/download/${RELEASE}/wastebin_${RELEASE}x86_64-unknown-linux-musl.tar.zst
tar -xf wastebin${RELEASE}_x86_64-unknown-linux-musl.tar.zst
New:
wget -q https://github.com/matze/wastebin/releases/download/${RELEASE}/wastebin_${RELEASE}_x86_64-unknown-linux-musl.zip -O $temp_file
unzip -q $temp_file
To my question:
Now I have read that there are now a relatively large variety of .env values. Is there a specific default? Which ones should be defined and is it sufficient to define them in the service with “EnvironmentFile=/opt/wastebin/.env”?
Thanks 4 Feedback! 👍🏻
@matze commented on GitHub (Mar 6, 2025):
Yes, sorry for the change of released artifacts.
To run the software, none of the environment variables have to be defined, they all have some default. However, to persist data you want to set at least
WASTEBIN_DATABASE_PATHto some filename otherwise all pastes will be wiped on restart. On top of that you likely want to adjustWASTEBIN_CACHE_SIZEaccording to system resource availability. Note that the number is in cached items not bytes because bytes cannot be predicted. To let users delete their pastes after a system restart you also want to set theWASTEBIN_SIGNING_KEYto some fixed value and depending on how slow your machine is you might want to bumpWASTEBIN_HTTP_TIMEOUT.@MickLesk commented on GitHub (Mar 6, 2025):
All right, that sounds good.
We use LXC (also designed for weak hardware) with Debian 12 on 1024 MB / 1 core. So no hardcore performance, but enough should still be possible.
What do you think of this basic configuration?
(By the way, is the .db file generated, or do I have to touch it once?
@matze commented on GitHub (Mar 6, 2025):
Note, that wastebin requires very little resources. Right now, https://bin.bloerg.net uses just ~11MB of RSS RAM, so you can definitely bump the cache size to something like 1024 items or so.
@matze commented on GitHub (Mar 6, 2025):
The file is created if it does not exist.
@MickLesk commented on GitHub (Mar 6, 2025):
Thx, all fine, Script is updated 😄