max total storage usage implemented!

code may be a bit messy but....

also implemented a storage usage stat (that can be toggled in .env) that
shows on the home page, you can also enable the total limit to show as
well

eventually i need to implement clearing old unfinished uploads both on
startup, admin actions, and cleaning up on upload failure
This commit is contained in:
2026-12-05 16:24:57 -05:00
parent a1ebd905df
commit c5636c9160
8 changed files with 269 additions and 87 deletions
+6 -1
View File
@@ -18,7 +18,11 @@ goals:
# roadmap/todo
- [ ] max total storage usage
- [x] max total storage usage
- [ ] clean up unfinished uploads
- [ ] on startup
- [ ] on upload failure
- [ ] on admin action
- [ ] size based expiry
- exclusions if below a certain size (like 5mb)
- [ ] prometheus metrics
@@ -33,6 +37,7 @@ goals:
- update expiry of uploads
- prune uploads that haven't been accessed for a specific amount of time
- delete (duh!)
- prune unfinished uploads
- local access from a specifc ip or range only
- [x] ASN blocking via geolite2