mirror of
https://github.com/yusufipk/OpenFrame.git
synced 2026-09-11 17:46:06 +00:00
feat: add project bulk download and bulk video delete
Add a "Download project" / "Download selected" flow that builds a server-side manifest of downloadable media, plus a selection mode with bulk delete for project videos. Gate viewer downloads behind a new project allowDownloads setting (default off, opt-in). Admins can always download; enabling on a public project allows anonymous visitors to download. Enforce the setting on every download surface (manifest, version, asset, watch, video routes) via canDownloadProjectMedia. Add rate limits for the manifest endpoint, host allowlisting for direct download URLs, and configurable file/byte caps. Closes #16 Closes #19
This commit is contained in:
@@ -23,6 +23,13 @@ OPENFRAME_MAX_VIDEO_UPLOAD_BYTES="5368709120"
|
||||
OPENFRAME_REQUIRE_INVITE_CODE="false"
|
||||
SELF_HOSTED_AUTO_CREATE_BUCKET="true"
|
||||
|
||||
# Project bulk-download manifest limits (GET /api/projects/[projectId]/download).
|
||||
OPENFRAME_PROJECT_DOWNLOAD_MAX_FILES="250"
|
||||
# 20 GiB in bytes (20 * 1024 * 1024 * 1024)
|
||||
OPENFRAME_PROJECT_DOWNLOAD_MAX_BYTES="21474836480"
|
||||
# Comma-separated hostnames for direct version download URLs (optional).
|
||||
NEXT_PUBLIC_DIRECT_DOWNLOAD_ALLOWED_HOSTS=""
|
||||
|
||||
# Trusted reverse proxy mode — controls which headers getClientIp() trusts for rate limiting.
|
||||
# Set this only when you have confirmed that your proxy strips/overwrites client-supplied headers.
|
||||
# cloudflare — trust cf-connecting-ip (Cloudflare edge in front of the origin)
|
||||
|
||||
Reference in New Issue
Block a user