mirror of
https://github.com/suitenumerique/meet.git
synced 2026-08-26 02:06:53 +00:00
wip connect minio
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
|
||||
from rest_framework.decorators import api_view
|
||||
from rest_framework.response import Response
|
||||
from minio import Minio
|
||||
from django.conf import settings
|
||||
|
||||
MINIO_BUCKET = "livekit-staging-livekit-egress"
|
||||
|
||||
@@ -25,4 +27,15 @@ def minio_webhook(request):
|
||||
|
||||
print('file received', filename)
|
||||
|
||||
client = Minio(
|
||||
settings.MINIO_URL,
|
||||
access_key=settings.MINIO_ACCESS_KEY,
|
||||
secret_key=settings.MINIO_SECRET_KEY,
|
||||
)
|
||||
|
||||
room_id = filename.split("_")[2].split(".")[0]
|
||||
|
||||
print('room_id', room_id, filename)
|
||||
|
||||
|
||||
return Response("")
|
||||
|
||||
Reference in New Issue
Block a user