Commit Graph

32 Commits

Author SHA1 Message Date
fe263e9a46 refactor: cleanup AI slop 2025-06-11 10:03:03 +01:00
fc080b5cd0 [WIP] Reporting (#19)
* Initial plan for issue

* Add database migration and report structures

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 15:28:44 +01:00
0554f1220f feat: return nip94 as tag array in blossom (#9)
Some checks failed
continuous-integration/drone Build is failing
2025-06-10 11:39:41 +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
4dad339c09 feat: r96util import 2025-02-12 12:11:58 +00:00
3b4bb866ab fix: uploaded timestamp blossom 2025-02-07 14:36:01 +00:00
b45018d0de refactor: drop webhook system 2025-01-15 20:31:05 +00:00
5e97f4d12a feat: infer mime
feat: store in tmp dir next to output dir
2025-01-15 19:59:09 +00:00
c024cd4a4e feat: bud-04 (mirror)
feat: migrate void.cat
2024-12-16 17:20:26 +00:00
5a0c0e6e37 fix: HEAD /media 2024-12-08 22:16:19 +00:00
a113056817 feat: blossom media uploads
fix: file extensions in URLs
2024-12-06 19:56:02 +00:00
bf19607c07 fix: blossom x-reason 2024-12-06 19:39:20 +00:00
ff423e8dd9 fix: whitelist status code
closes https://github.com/v0l/route96/issues/5
2024-12-06 19:26:10 +00:00
c86631423d feat: swap ureq for reqwest 2024-10-15 11:27:29 +01:00
5453205a58 refactor: make media compression optional for blossom 2024-10-15 11:14:07 +01:00
1a35924e8b chore: clippy fix 2024-10-15 10:48:39 +01:00
a580ceac44 feat: BUD-05 2024-10-15 10:47:36 +01:00
9bcdeabda8 feat: new UI 2024-09-24 13:49:17 +01:00
c8da87e0dd feat: rename / upgrades 2024-09-22 14:26:59 +01:00
7fa2633a1e Blossom fixes 2024-08-30 22:00:33 +01:00
ab4ff7b035 Clippy fixes 2024-08-30 19:50:09 +01:00
1a1d85b898 Feature flag nip96/blossom
closes #5
2024-08-30 19:49:29 +01:00
19e995ac16 feat: feature labels 2024-05-29 15:23:14 +01:00
5547673331 feat: list files (nip96) 2024-05-29 14:31:44 +01:00
a85dbf88b9 feat: webhook init 2024-05-16 21:55:55 +01:00
cf2950bf99 Automatic image labeling 2024-05-14 17:06:35 +01:00
30e4e8ed1c Check upload size 2024-05-14 12:04:53 +01:00
f16e7acadb Whitelist / better duplicate file response 2024-05-14 10:58:21 +01:00
8a58cfe825 Compress images only for NIP-96 endpoint 2024-05-14 10:04:42 +01:00
da2448fae9 Compute blurhash 2024-05-13 12:13:30 +01:00
7d86f94458 Compress images 2024-05-10 11:54:40 +01:00
c4aae42fcd Nip96 2024-05-01 15:00:43 +01:00