Spaces:
Runtime error
Runtime error
Commit History
-
docs(uploadcare): generalize setup guide examples
Akshar2325- replace specific uploadcare public and private keys with generic placeholders in .env examples - update example public keys, signatures, and file UUIDs in API response snippets for clarity34dcb32
-
✨ feat(hls): add hls video processing completion notification
Akshar2325- implement n8n workflow to send discord notifications for hls processing - introduce method to dispatch webhook with upload details and processing time - integrate notification into wasabi storage service after successful hls conversion - include m3u8 url, original size, and environment in the notification payload 🔧 chore(env): update env example with hls completion webhook url - add N8N_DISCORD_HLS_COMPLETE_WEBHOOK_URL for discord notificationsd6edde0 -
refactor(upload): provide real-time video processing status
Akshar2325- introduce in-memory map to track active hls video conversions - `getUploadStatus` now returns `processing` or `failed` status from memory - improve user experience by giving immediate feedback on video processing - prevent `404 not found` for videos actively undergoing conversioncb386b1 -
refactor(wasabi-storage): improve comments on file deletion process and update description for fileUrl query parameter
Akshar23252c01ad8 -
fix(wasabi-storage): support proxy urls for video processing
Akshar2325- update `processVideoFromWasabiUrl` to accept either direct `filePath` or proxy `fileUrl` - implement logic to extract the actual wasabi path when a proxy url is provided - enhance controller and service descriptions to clarify supported input types for video uploadse639e9d -
✨ feat(upload): support large video processing from wasabi
Akshar2325- introduce new endpoint `/wasabi/upload-video-hls-from-url` for large files - implement service to download, convert to hls, and delete pre-uploaded videos - update existing upload endpoint docs to clarify 50mb limit for direct upload - reduce global body parser limits to 50mb to match new upload strategy61d4c9c -
🔧 chore(wasabi-storage): configure discord logging per method
Akshar2325- move `@logtodiscord()` decorator from class to individual methods - enable granular control over discord notifications for specific endpoints - prevent excessive logging by only notifying for critical actionsc39fe6a -
⚡️ perf(upload): optimize wasabi client and logging
Akshar2325- configure s3 client for improved reliability and performance - set max attempts to 3 and request timeout to 30 seconds - increase https agent max sockets to 200 for parallel operations - disable verbose logging for file operations - reduce I/O overhead and improve system efficiency7a8a5f8 -
✨ feat(wasabi): add hls video streaming and s3 proxy
Akshar2325- implement full hls video streaming architecture with wasabi s3 - server acts as proxy cdn to stream hls content from wasabi - add api endpoints for presigned urls, file streaming, hls upload and deletion - integrate hls conversion service for adaptive hls generation - introduce filetype enum for better file categorization - configure wasabi s3 credentials via environment variables 📝 docs(wasabi): document hls streaming architecture - create hls-streaming-architecture.md with detailed explanations of: - upload and hls conversion flow - streaming flow (proxy cdn magic) and url rewriting - performance analysis for local vs production deployment - architecture benefits and debugging tips - add mermaid-diagram.md for a visual representation of the hls streaming processdeb4bd0
-
feat(uploadcare): Added uploadcare storage integration
Akshar2325- introduce uploadcare as a new file storage provider - implement secure signed uploads for images, videos, and documents - add api endpoints for signature generation, file info, and deletion - configure credentials via environment variables for separate projects - include comprehensive markdown documentation for setup and usageda508a4 -
feat(box-storage): add LogToDiscord decorator to OAuth and upload endpoints
Akshar2325cfe53d1 -
feat(box-storage): add error illustration endpoint and caching for 404 page
Akshar23257babbe1 -
feat(box-storage): add SkipApiToken decorator to file streaming endpoint
Akshar23256f195c2 -
feat(box-storage): add SkipApiToken decorator to OAuth endpoints
Akshar2325b357ab7 -
feat(box-storage): add box.com cloud storage integration
Akshar2325- implement oauth 2.0 authentication and automatic token refresh - add file upload, streaming, and deletion endpoints - support dynamic folder routing based on file type - stream files directly with mime type detection and video seeking - integrate box storage module into main upload module - add utility for generating a styled 404 error page 📝 docs(box-storage): add box.com storage setup guide - provide comprehensive guide for box.com setup and usage - include steps for app creation, oauth config, and folder ids - document api endpoints, usage examples, and troubleshooting - add box.com credentials and folder ids to .env.example 📦 build(deps): increase node memory for build scripts - configure node max old space size to 4096mb for build commands - prevent out-of-memory errors during large builds 🔧 chore(git): ignore box-tokens.json - add box-tokens.json to .gitignore to prevent sensitive data leaksc5b7daf
-
feat(short-url): Added Trim Kutt URL shortener integration with CRUD operations
Akshar23252ed6bf1 -
feat(short-url): implement Shlink URL shortener integration with CRUD operations
Akshar23252f0bbdc -
docs(google-drive): Added setup guide for Google Drive API with OAuth2
Akshar2325bcd6afe
-
♻️ refactor(discord-logger): centralize client ip retrieval
Akshar2325- introduce `getClientIp` method to centralize ip extraction logic - ensure accurate client ip detection by robustly handling `x-forwarded-for` - improve log consistency and maintainability for ip logginga4544dc -
feat(discord-logger): implement api request and response logging
Akshar2325- create discord logger module including service, interceptor, and exception filter - introduce `@LogToDiscord()` decorator to enable selective logging on controllers or methods - send sanitized request/response data to n8n webhooks for success (2xx-3xx) and error (4xx-5xx) statuses - integrate logging into super admin and user authentication, 2fa, profile, and various upload modules - mark requests for logging within guards to ensure consistent behavior 📝 docs(discord-logger): add architecture guide and env configuration - provide a comprehensive architecture document detailing the discord logger system - update .env.example with necessary environment variables for discord loggingd201b18
-
feat(auth): add global api token protection
Akshar2325- introduce global api token guard for enhanced API security - enable/disable api token authentication via `API_TOKEN_ENABLED` environment variable - configure the secret API token using `API_SECRET_TOKEN` environment variable - allow skipping api token validation for specific endpoints using `@SkipApiToken()` decorator - update `.env.example` with new API token configuration details - integrate API token security definition and application into Swagger documentationdf84e17 -
✨ feat(super-admin-2fa): introduce two-factor authentication
Akshar2325- implement comprehensive two-factor authentication (2fa) for super admins - extend db schema with models for 2fa methods, recovery codes, and trusted devices - add core modules and services for managing all 2fa related entities - integrate 2fa checks, pending token generation, and trusted device logic - provide api endpoints for enabling, sending, and verifying email and totp codes - enable management of recovery codes and trusted devices for enhanced security - update email service to support sending 2fa verification codes 📦 build(deps): add 2fa related dependencies - install crypto-js for secret encryption - install nanoid for unique id generation - install otplib for totp authenticator functionality - install qrcode for qr code generation 🔧 chore(messages): update common and 2fa related messages - add 'invalid_2fa_token' to common error messages - define specific success and error messages for all super admin 2fa features 📝 docs(super-admin-auth): add 2fa authentication flow …add3ead
-
feat(prisma): add SSL configuration for Supabase/Neon PostgreSQL adapter
Akshar23251e3c043 -
feat(prisma): add SSL configuration for self-signed certificates
Akshar2325cd06de5 -
⚡️ perf(upload): optimize minio file upload performance
Akshar2325- switch to file streaming for single file uploads to reduce memory usage - implement adaptive concurrency for parallel uploads based on cpu cores - improve resource utilization and upload speed for multi-file operations3a4ec11 -
feat(hls-conversion): implement adaptive HLS conversion with multiple profiles and upload to MinIO
Akshar2325f8451c5 -
✨ feat(new-minio-storage): implement hls video processing and management
Akshar2325- introduce new api endpoints for hls video upload, deletion, and status retrieval - create `startVideoProcessing` to initiate async hls conversion and minio upload - implement `processVideoToHLS` to orchestrate conversion, minio storage, and database updates - add `deleteProcessedVideo` to remove hls files from minio and update database record - provide `getUploadStatus` to query hls conversion progress and details ♻️ refactor(hls-conversion): decouple service from storage and database - remove direct `uploadCoreService` dependency from `hlsConversionService` - eliminate status updates and error handling related to database from service - clarify `hlsConversionService` role as a pure video-to-hls converter - delegate database and storage interactions to orchestrating services ♻️ refactor(upload-model): generalize upload model for hls storage - remove google drive specific fields from `Upload` prisma model - update `hlsFolderId` comment to reflect generic folder storageb876bc7 -
feat(google-drive-upload): add Google Drive integration for file uploads and HLS conversion
Akshar2325- Introduced Upload model in Prisma schema for managing file uploads. - Implemented UploadCoreService for handling upload operations. - Created HlsConversionService for converting videos to HLS format. - Added GoogleDriveService for uploading files to Google Drive with OAuth2 support. - Developed GoogleDriveController for handling file upload and deletion requests. - Configured Google Drive settings in environment variables. - Enhanced package dependencies with ffmpeg and Google APIs.ffebaa3
-
style(dropbox-storage): format code for improved readability
Akshar2325- Remove unnecessary line breaks in constructor parameter list - Trim trailing whitespace from multiple lines - Standardize formatting in URL parameter handling logic - Improve code consistency across controller and service files6f84fbe -
feat(dropbox-storage): add dropbox storage integration
Akshar2325- Add Dropbox SDK dependency (v10.34.0) to project - Create dropbox-storage configuration module with environment variables - Implement DropboxStorageService with file upload, download, delete, and metadata operations - Add DropboxStorageController with REST API endpoints for file management - Create FileType enum for categorizing uploaded files (IMAGE, VIDEO, DOCUMENT, AUDIO) - Integrate dropbox-storage module into main upload module - Add Dropbox credentials to .env.example (DROPBOX_ACCESS_TOKEN, DROPBOX_APP_FOLDER) - Provide complete file lifecycle management with shareable link generation - Follow established storage module patterns consistent with existing integrationsef99e8a -
style(idrive-e2-storage): format ApiOperation decorator for readability
Akshar2325- Split ApiOperation decorator across multiple lines for improved code formatting - Maintain consistent decorator styling with project conventions - Improve code readability without changing functionality01841a1 -
feat(idrive-e2-storage): add CDN and image resizing support
Akshar2325- Add IDRIVE_E2_CDN_URL environment variable for permanent CDN access - Add Cloudflare integration configuration (zone ID and API token) - Rename presigned-download endpoint to presigned-url for Cloudflare Worker compatibility - Add new /resize endpoint for on-the-fly image resizing with width, height, and quality parameters - Update file URL generation to use permanent CDN URLs instead of presigned URLs - Simplify response structure by consolidating expiration time fields - Add sharp library integration for image processing capabilities - Update service to store and utilize CDN URL and Cloudflare credentials - Improve error handling and response formatting for Cloudflare Worker integration036d801 -
feat(idrive-e2-storage): add idrive e2 storage integration
Akshar2325- Add IDrive e2 storage module with S3-compatible API integration - Create file-type enum for categorizing uploads (IMAGE, DOCUMENT, VIDEO) - Implement presigned URL generation for secure file uploads and downloads - Add file deletion functionality with URL-based file removal - Create storage configuration with environment variables for endpoint, region, access key, secret key, and bucket - Add controller endpoints for presigned upload/download URLs and file deletion - Implement automatic file organization by type into separate folders - Add comprehensive error handling and logging throughout the service - Update environment example file with IDrive e2 credentials configuration - Integrate IDrive e2 module into main upload module exports5d53367
-
feat(upload): add rustfs storage integration
Akshar2325- introduce rustfs storage as a new s3-compatible upload provider - enable presigned upload url generation for various file types - allow deletion of files by url or direct file path - configure rustfs credentials via environment variables - create dedicated module, service, controller, and file type enum51c6e04 -
feat(garage-upload): add garage storage integration
Akshar2325- implement garage storage service for file uploads and deletions - provide presigned urls for secure and direct uploads - allow file deletion by url - configure environment variables for garage storage credentials - integrate garage storage module into the main upload module - define file type enum for organized storage pathseaa626f -
docs(upload): standardize API tags across all storage modules
Akshar2325- Update Backblaze B2 Storage API tag to "Upload: Backblaze B2 Storage" - Update Cloudinary API tag to "Upload: Cloudinary Storage" - Update Filestack API tag to "Upload: Filestack Storage" - Update ImageKit.io API tag to "Upload: ImageKit.io Storage" - Update NewMinio Storage API tag to "Upload: NewMinio Storage" - Update OldMinio Storage API tag to "Upload: OldMinio Storage" - Update SeaweedFS Storage API tag to "Upload: SeaweedFS Storage" - Update Supabase Storage API tag to "Upload: Supabase Storage" - Improves API documentation consistency and clarity by prefixing all storage module tags with "Upload:" namespace1d6d4ff -
feat(seaweedfs-storage): add seaweedfs module for file management
Akshar2325- Add SeaweedFS storage module with file upload and deletion capabilities - Create seaweedfs-storage service with S3-compatible API integration - Implement seaweedfs-storage controller with upload and delete endpoints - Add FileType enum for categorizing uploaded files (IMAGE, DOCUMENT, VIDEO) - Create seaweedfs-storage configuration with environment variables - Migrate old-minio-storage module to unified upload namespace structure - Add SeaweedFS credentials to .env.example configuration - Register SeaweedfsStorageModule in upload module exports - Provides distributed file storage alternative with S3-compatible interface4b6b4e5
-
feat(old-minio-storage): add old minio version s3 storage module for file management
Akshar2325- Add FileType enum with IMAGE, DOCUMENT, and VIDEO types - Create OldMinioStorageConfig for environment variable configuration - Implement OldMinioStorageService with presigned URL generation and file deletion - Add OldMinioStorageController with endpoints for upload URLs and file deletion - Create OldMinioStorageModule to integrate the storage provider - Update .env.example with OldMinio storage credentials and configuration - Register OldMinioStorageModule in the upload module - Support S3-compatible MinIO API with presigned URL generation for secure uploads - Enable file organization by type (images, documents, videos) with automatic folder routing67cf349 -
refactor(upload): reorganize storage modules under unified upload namespace
Akshar2325- Move backblaze-storage module to src/shared/modules/upload/backblaze-storage - Move cloudinary module to src/shared/modules/upload/cloudinary - Move filestack module to src/shared/modules/upload/filestack - Move imagekitio module to src/shared/modules/upload/imagekitio - Move new-minio-storage module to src/shared/modules/upload/new-minio-storage - Move supabase-storage module to src/shared/modules/upload/supabase-storage - Create new UploadModule to aggregate all storage provider modules - Update app.module.ts to import UploadModule instead of individual storage modules - Consolidate storage provider imports for improved code organization and maintainabilityf75a84b -
feat(new-minio-storage): add new minio vesrion s3 storage module for file management
Akshar2325- Add NewMinioStorageModule with S3Client integration for MinIO compatibility - Create MinioStorageService with presigned URL generation and file deletion capabilities - Implement MinioStorageController with endpoints for presigned uploads and file deletion - Add FileType enum to categorize files (IMAGE, DOCUMENT, VIDEO) with folder organization - Create minioStorageConfig for environment-based configuration management - Add MinIO credentials to .env.example (endpoint, access key, secret key, bucket, region) - Register NewMinioStorageModule in AppModule for application-wide availability - Support file organization by type with automatic folder path generation - Enable presigned URL generation for secure client-side uploads - Provide file deletion by URL with proper error handling and logging76fba7a
-
feat(filestack): add filestack module for file management
Akshar2325- Add filestack-js dependency (v4.3.4) to package.json - Create filestack configuration module with API key and app secret setup - Implement filestack service for file operations and management - Add filestack controller to handle file-related HTTP requests - Create file-type enum for supported file type definitions - Register filestack module in app.module.ts - Update .env.example with filestack credentials (API key and app secret) - Add @filestack/loader and @sentry dependencies for enhanced functionality - Integrate filestack as an additional file management provider alongside existing services806651d -
feat(image): add on-the-fly image resizing service
Akshar2325【Cloudflare Worker】 - add a worker to proxy requests from the CDN domain - serve original images directly from B2 for performance - forward requests with w, h, or q params to the backend for resizing - implement edge caching for both original and resized images 【NestJS Backend】 - create `/backblaze/resize` endpoint to process images - integrate `sharp` library for high-quality, fast resizing - apply format-specific optimizations for JPEG, PNG, and WebP - add subtle sharpening to resized images to improve clarity refactor(cdn): enhance cloudflare cache purging for resized variants - update cache purge logic to invalidate all resized image variants - generate a list of common sizes and qualities to purge - batch purge requests to Cloudflare to avoid API rate limitsee3e190 -
feat(backblaze-storage): add cloudflare cache purge
Akshar2325- implement cloudflare cache purging when a file is deleted via its URL - ensures that deleted content is immediately removed from the CDN edge - add new environment variables for cloudflare zone id and api token6e718b6 -
feat(backblaze-storage): implement versioned file deletion
Akshar2325- update deleteFile method to support S3 object versioning - list all versions and delete markers for a given file path - issue individual delete commands for each version to ensure permanent removal - maintain original simple delete logic for non-versioned filesbf6c43f -
feat(storage): add backblaze b2 storage module
Akshar2325- 【feat】introduce a complete nestjs module for backblaze b2 storage - 【feat】implement service to generate presigned urls for secure uploads - 【feat】create controller with endpoints for upload and deletion - 【feat】organize files into folders based on type (e.g., images, videos) - 【chore】add required environment variables to .env.example - 【chore】integrate the new module into the main application module498cc9f -
feat(superbase): integrate supabase for file management
Akshar2325- introduce a new module for supabase storage integration - add controller with endpoints for presigned uploads and deletion - implement service using aws s3 sdk for s3-compatible api - add configuration for supabase credentials and bucket - include required dependencies for aws sdk v3 s3 clientae1f03b -
feat(cloudinary): add cloudinary module for file management
Akshar2325- add a new CloudinaryModule for comprehensive file management - implement service for signed uploads, deletion, and file retrieval by URL - create controller with endpoints for generating signed params and managing files - configure module via environment variables for flexibility606bfb2 -
feat(imagekit): add folder management and cdn cache purging
Akshar2325- Organize uploads into type-specific folders (images, documents, etc.). - Automatically purge cdn cache upon file deletion for immediate effect. refactor(imagekit): streamline api endpoints and service logic - Rename endpoints for clarity (`/auth` to `/signed-upload`, `/by-url`). - Remove unused endpoints and service methods for file details and deletion by id. - Simplify swagger documentation for controller endpoints. fix(imagekit): make file lookup by url more robust - Clean urls by removing query parameters before searching. - Prevents lookup failures for urls with versioning or tracking params.3b3ab98
-
feat(imagekit): integrate imagekit.io for file management
Akshar2325- add imagekit npm package and configure credentials - create a new ImagekitioModule with a service and controller - implement endpoints for client-side upload authentication - add endpoints to delete files by URL or file ID - include endpoints to retrieve file details from imagekit9f0826d -
fix(auth): improve robustness of user signup and email flow
Akshar2325- 【auth】make welcome email sending non-blocking to prevent signup failures - 【email】enhance error handling for email API to manage non-json responses feat(email): add detailed logging for traceability - log email payloads, raw API responses, and success/error states - improves debugging capabilities for email delivery issues refactor(db): remove unused clientId field from UserSession - clean up the prisma schema by removing the obsolete `clientId` columnfcc750f