Commit Graph

18 Commits

Author SHA1 Message Date
ca2d23508b Implement payments system with default free allowance and quota enforcement (#17)
* Initial plan for issue

* Implement complete payments system with quota enforcement

- Add default free allowance configuration (100MB)
- Implement quota checking before uploads in both blossom and nip96 routes
- Add comprehensive quota checking functions in database module
- Enhance admin API to show quota information
- Add payment processing infrastructure
- Include all necessary database migrations

Users now get 100MB free storage + any valid paid storage.
Uploads are rejected when quota would be exceeded.

* Move free_quota_bytes to PaymentConfig and restore mime_type parameter

Co-authored-by: v0l <1172179+v0l@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: v0l <1172179+v0l@users.noreply.github.com>
2025-06-10 11:37:17 +01:00
e3e2986294 chore: add link to profile 2025-05-27 16:15:10 +01:00
e1fca9a604 feat: filter list by mime 2025-02-06 22:33:26 +00:00
201a3aaa49 fix: method tag for media upload 2025-01-27 21:22:06 +00:00
5fbe40faae feat: improve file list 2025-01-27 11:15:26 +00:00
0bd531a21d feat: ui render image thumbs 2025-01-25 23:28:01 +00:00
4accc35bdb fix: login
closes https://github.com/v0l/route96/issues/6
2025-01-14 12:41:51 +00:00
d7c7048c20 feat: add logo 2025-01-14 12:36:50 +00:00
c024cd4a4e feat: bud-04 (mirror)
feat: migrate void.cat
2024-12-16 17:20:26 +00:00
5e92134b5c fix: missing report 2024-12-16 15:51:45 +00:00
d5904d4ee0 feat: larger UI 2024-12-16 15:49:09 +00:00
961a6910ac feat: admin delete
feat: total usage stats
2024-12-16 12:52:27 +00:00
a113056817 feat: blossom media uploads
fix: file extensions in URLs
2024-12-06 19:56:02 +00:00
5bebb71f4d fix: nip96 upload
fix: leaky file handles
2024-11-29 23:41:47 +00:00
2b194ad10c feat: admin list 2024-10-04 18:00:37 +01:00
7a68ec800a fix: build 2024-09-26 10:49:17 +01:00
b78c073066 feat: list files grid/table 2024-09-26 10:46:39 +01:00
9bcdeabda8 feat: new UI 2024-09-24 13:49:17 +01:00