feat: store node logo/favicon in postgres instead of S3

- Add logoData and faviconData columns to nodes table
- Create /api/admin/node/upload endpoint for direct DB storage
- Create /api/node/logo and /api/node/favicon endpoints to serve images
- Update admin page to use new upload endpoint
- Remove dependency on admin's personal S3 storage for node assets
This commit is contained in:
Christomatt
2026-02-01 16:29:39 +01:00
parent 0cea2e9e1f
commit 90dfd62434
17 changed files with 913 additions and 90 deletions
+2
View File
@@ -15,6 +15,8 @@ export const nodes = pgTable('nodes', {
bannerUrl: text('banner_url'),
logoUrl: text('logo_url'),
faviconUrl: text('favicon_url'),
logoData: text('logo_data'), // Base64 encoded logo image
faviconData: text('favicon_data'), // Base64 encoded favicon image
accentColor: text('accent_color').default('#FFFFFF'),
publicKey: text('public_key'),
privateKeyEncrypted: text('private_key_encrypted'), // Encrypted with AUTH_SECRET