mirror of
https://github.com/yusufipk/OpenFrame.git
synced 2026-09-11 17:46:06 +00:00
- Added support for self-hosted S3 video uploads with new environment variables: OPENFRAME_ENABLE_S3_VIDEO_UPLOADS and OPENFRAME_MAX_VIDEO_UPLOAD_BYTES. - Updated .env.example and .env.docker.example to reflect new configuration options. - Enhanced Content Security Policy to include origins for S3-compatible storage. - Updated dependencies for AWS SDK to support new features. - Refactored upload logic to accommodate both Bunny and S3 upload providers. - Updated documentation to clarify the usage of direct uploads and S3 configurations. - Closes #11
13 lines
526 B
SQL
13 lines
526 B
SQL
-- Ensure a finalized R2 object key and proxy URL can only be claimed once.
|
|
CREATE UNIQUE INDEX "video_versions_r2_videoid_unique"
|
|
ON "video_versions" ("videoId")
|
|
WHERE "providerId" = 'r2';
|
|
|
|
CREATE UNIQUE INDEX "video_versions_r2_originalurl_unique"
|
|
ON "video_versions" ("originalUrl")
|
|
WHERE "providerId" = 'r2' AND "originalUrl" LIKE '/api/upload/video/%';
|
|
|
|
CREATE UNIQUE INDEX "video_versions_r2_thumbnail_unique"
|
|
ON "video_versions" ("thumbnailUrl")
|
|
WHERE "providerId" = 'r2' AND "thumbnailUrl" LIKE '/api/upload/image/%';
|