From 6db902632ad5b89a2e0aa5ec02d085107bf29f4a Mon Sep 17 00:00:00 2001 From: Viet Nguyen Duc Date: Tue, 7 Jan 2025 03:37:36 +0700 Subject: [PATCH] Docker: Video uploader process is spawned by env var flag SE_VIDEO_UPLOAD_ENABLED Signed-off-by: Viet Nguyen Duc --- README.md | 4 ++-- Video/uploader.conf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 28f3c633e..03049c7cb 100644 --- a/README.md +++ b/README.md @@ -692,9 +692,9 @@ services: `SE_VIDEO_FILE_NAME=auto` will use the session id as the video file name. This ensures that the video file name is unique to upload. Video file name construction automatically works based on Node endpoint `/status` (and optional GraphQL endpoint) to get session ID, capabilities. -`SE_VIDEO_UPLOAD_ENABLED=true` will enable the video upload feature. In the background, it will create a pipefile with file and destination for uploader to consume and proceed. +`SE_VIDEO_UPLOAD_ENABLED=true` (`false` by default) will enable the video upload feature. In the background, it will create a pipefile with file and destination for uploader to consume and proceed. -`SE_VIDEO_INTERNAL_UPLOAD=true` will use RCLONE installed in the container for upload. If you want to use another sidecar container for upload, set it to `false`. +`SE_VIDEO_INTERNAL_UPLOAD=true` (by default) will use RCLONE installed in the container for upload. If you want to use another sidecar container for upload, set it to `false`. | ENV variables per mode | Hub/Nodes | Standalone roles | Dynamic Grid | |------------------------------------------|-------------------|------------------|----------------| diff --git a/Video/uploader.conf b/Video/uploader.conf index f92969be4..0a3162073 100644 --- a/Video/uploader.conf +++ b/Video/uploader.conf @@ -2,9 +2,9 @@ priority=5 command=/opt/bin/upload.sh killasgroup=true -autostart=%(ENV_SE_VIDEO_INTERNAL_UPLOAD)s +autostart=%(ENV_SE_VIDEO_UPLOAD_ENABLED)s startsecs=0 -autorestart=%(ENV_SE_VIDEO_INTERNAL_UPLOAD)s +autorestart=%(ENV_SE_VIDEO_UPLOAD_ENABLED)s stopsignal=TERM stopwaitsecs=30