.env.example, addr config, working on banned mime types

This commit is contained in:
2026-11-15 11:22:50 -05:00
parent 93da714ed0
commit e1e0c8042e
5 changed files with 28 additions and 4 deletions
+18
View File
@@ -0,0 +1,18 @@
# directory where uploads are stored
MINIBIN_UPLOAD_DIR=uploads
MINIBIN_DATABASE_PATH=minibin.sqlite
# the public host of minibin
MINIBIN_HOST=https://example.tld
# the address minibin binds to
MINIBIN_ADDR=localhost:8080
# max size uploadable in KiB, 97657 is around 100 MB
MINIBIN_MAX_PASTE_KIB=97657
MINIBIN_MAX_FILE_KIB=97657
# allowed expiries, shown in the order they are written
# syntax: h(our),d(ay),w(eek),mo(nth),y(ear), 0 = indefinite/no expiry
MINIBIN_EXPIRIES=1h,12h,1d,7d,2w,1mo,6mo,1y,5y,0
# when set to true, will normalize mime types
# the browser could execute to text/plain to prevent it
MINIBIN_NORMALIZE_MIME_TYPES=true
# prevents uploads with these mime types, separated by commas
MINIBIN_BANNED_MIME_TYPES="application/vnd.microsoft.portable-executable,application/java-archive,application/x-executable"