Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CATALYST_API_STORAGE_FALLBACK_URLS=http://127.0.0.1:8888/os-recordings/=http://127.0.0.1:8888/os-recordings-backup/
CATALYST_UPLOADER_STORAGE_FALLBACK_URLS=s3+http://admin:password@localhost:9420/os-recordings/=s3+http://admin:password@localhost:9000/os-recordings-backup/
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ box-dev: scripts
-p 3478:3478 \
-p 3478:3478/udp \
-p 5349:5349 \
-p 9001:9001 \
-p 9090:9090 \
-p 40000-40100:40000-40100/udp \
livepeer/in-a-box
Expand Down
4 changes: 2 additions & 2 deletions config/full-stack.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
"autopushes": [
[
"videorec+",
"s3+http://admin:password@localhost:9000/os-recordings/$wildcard/$uuid/source/$segmentCounter.ts?m3u8=../output.m3u8&split=5&video=source&audio=AAC&append=1&waittrackcount=2&recstart=-1"
"s3+http://admin:password@localhost:9420/os-recordings/$wildcard/$uuid/source/$segmentCounter.ts?m3u8=../output.m3u8&split=5&video=source&audio=AAC&append=1&waittrackcount=2&recstart=-1"
],
[
"video+",
"s3+http://admin:password@localhost:9000/os-recordings/$wildcard/$uuid/source/$segmentCounter.ts?m3u8=../output.m3u8&split=5&video=source&audio=AAC&append=1&waittrackcount=2&recstart=-1"
"s3+http://admin:password@localhost:9420/os-recordings/$wildcard/$uuid/source/$segmentCounter.ts?m3u8=../output.m3u8&split=5&video=source&audio=AAC&append=1&waittrackcount=2&recstart=-1"
]
],
"config": {
Expand Down
11 changes: 6 additions & 5 deletions config/make-os.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,20 @@ set -euo pipefail

function makeStore() {
PREFIX=$1
PORT=$2
result=$(curl --silent \
-H "authorization: Bearer $LP_COM_TOKEN_ADMIN" \
http://localhost:8888/api/object-store \
-X POST \
-H "content-type: application/json" \
--data-raw '{
"url": "s3+http://admin:password@127.0.0.1:9000/'$PREFIX'",
"url": "s3+http://admin:password@127.0.0.1:'$PORT'/'$PREFIX'",
"publicUrl": "http://127.0.0.1:8888/'$PREFIX'"
}')
echo $result | jq -r '.id'
}

echo '"vodObjectStoreId": "'$(makeStore os-vod)'",'
echo '"vodCatalystObjectStoreId": "'$(makeStore os-catalyst-vod)'",'
echo '"vodCatalystPrivateAssetsObjectStore": "'$(makeStore os-private)'",'
echo '"recordCatalystObjectStoreId": "'$(makeStore os-recordings)'",'
echo '"vodObjectStoreId": "'$(makeStore os-vod 9000)'",'
echo '"vodCatalystObjectStoreId": "'$(makeStore os-catalyst-vod 9000)'",'
echo '"vodCatalystPrivateAssetsObjectStore": "'$(makeStore os-private 9000)'",'
echo '"recordCatalystObjectStoreId": "'$(makeStore os-recordings 9420)'",'
5 changes: 4 additions & 1 deletion scripts/livepeer-minio
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@ bash <<EOF &
&& mc mb minio-server/os-catalyst-vod --ignore-existing \
&& mc mb minio-server/os-private --ignore-existing \
&& mc mb minio-server/os-recordings --ignore-existing \
&& mc mb minio-server/os-recordings-backup --ignore-existing \
&& mc anonymous set download minio-server/os-vod \
&& mc anonymous set download minio-server/os-catalyst-vod \
&& mc anonymous set download minio-server/os-private \
&& mc anonymous set download minio-server/os-recordings; do \
&& mc anonymous set download minio-server/os-recordings \
&& mc anonymous set download minio-server/os-recordings-backup \
; do \
sleep 1;
done
EOF
Expand Down