mirror of
https://github.com/mediacms-io/mediacms.git
synced 2026-06-06 17:13:02 -04:00
feat: introduce x-accell headers
This commit is contained in:
@@ -202,6 +202,15 @@ THUMBNAIL_UPLOAD_DIR = f"{MEDIA_UPLOAD_DIR}/thumbnails/"
|
||||
SUBTITLES_UPLOAD_DIR = f"{MEDIA_UPLOAD_DIR}/subtitles/"
|
||||
HLS_DIR = os.path.join(MEDIA_ROOT, "hls/")
|
||||
|
||||
# Protect media files via nginx auth_request
|
||||
# When True, nginx delegates authorization for /media/<protected>/... to a
|
||||
# Django endpoint that checks the Media's state and the user's access.
|
||||
USE_X_ACCEL_REDIRECT = True
|
||||
# Subdirectories of MEDIA_ROOT that should be gated. "chunks" is intentionally
|
||||
# omitted (upload state, not playback).
|
||||
X_ACCEL_PROTECTED_PATHS = ["encoded", "hls", "original"]
|
||||
X_ACCEL_AUTH_CACHE_SECONDS = 300
|
||||
|
||||
FFMPEG_COMMAND = "ffmpeg" # this is the path
|
||||
FFPROBE_COMMAND = "ffprobe" # this is the path
|
||||
MP4HLS = "mp4hls"
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
VERSION = "8.0.8"
|
||||
VERSION = "8.1.0"
|
||||
|
||||
Reference in New Issue
Block a user