rebuild mediamtx for proper integration with rclone, need to add sh later for debug
This commit is contained in:
@@ -59,14 +59,16 @@ pathDefaults:
|
||||
# \"dstFs\":\"minio:livestream\",
|
||||
# \"dstRemote\":\"$MTX_PATH/$f\"}"'
|
||||
|
||||
runOnRecordSegmentCreate: >
|
||||
sh -c 'd="$(dirname "$MTX_SEGMENT_PATH")";
|
||||
f="$(basename "$MTX_SEGMENT_PATH")";
|
||||
curl -s -H "Content-Type: application/json"
|
||||
-X POST "http://rclone:5572/operations/copyfile?_async=true"
|
||||
-d "{\"srcFs\":\"$d\",\"srcRemote\":\"$f\",
|
||||
\"dstFs\":\"minio:livestream\",
|
||||
\"dstRemote\":\"$MTX_PATH/$f\"}"'
|
||||
# runOnRecordSegmentCreate: >
|
||||
# sh -c 'd="$(dirname "$MTX_SEGMENT_PATH")";
|
||||
# f="$(basename "$MTX_SEGMENT_PATH")";
|
||||
# curl -s -H "Content-Type: application/json"
|
||||
# -X POST "http://rclone:5572/operations/copyfile?_async=true"
|
||||
# -d "{\"srcFs\":\"$d\",\"srcRemote\":\"$f\",
|
||||
# \"dstFs\":\"minio:livestream\",
|
||||
# \"dstRemote\":\"$MTX_PATH/$f\"}"'
|
||||
|
||||
runOnRecordSegmentCreate: rclone copy "$MTX_SEGMENT_PATH" "minio:livestream/${MTX_SEGMENT_PATH#/recordings/whip/live/}" --progress
|
||||
|
||||
authInternalUsers:
|
||||
- user: any
|
||||
|
||||
Reference in New Issue
Block a user