Commit Graph

5 Commits

Author SHA1 Message Date
fe263e9a46 refactor: cleanup AI slop 2025-06-11 10:03:03 +01:00
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
b45018d0de refactor: drop webhook system 2025-01-15 20:31:05 +00:00
b0571efcb3 feat: serve legacy void.cat uploads 2024-12-16 13:34:30 +00:00
1b84e22ea9 refactor: yaml configs 2024-12-11 09:46:00 +00:00