does LiveKit egress recordings support supabase st...
# ask-ai
m
does LiveKit egress recordings support supabase storage?
t
Thanks for reaching out, Daniel. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Great news! LiveKit egress recordings do support Supabase storage through its S3-compatible interface. You can easily set up Supabase as your storage backend by providing the right endpoint, credentials, and making sure to enable
ForcePathStyle
. Here’s a friendly guide to help you get started: • Via YAML Configuration: Just add the following to your LiveKit egress YAML config file:
Copy code
storage:
  s3:
    access_key: your-supabase-access-key
    secret: your-supabase-secret-key
    region: auto
    endpoint: <https://your-project-id.fra1.storage.supabase.com>
    bucket: your-bucket-name
    force_path_style: true
Via API Request: You can also specify Supabase storage in individual egress requests using the
S3Upload
configuration like this:
Copy code
from livekit import api

req = api.RoomCompositeEgressRequest(
    room_name="my-room",
    file_outputs=[api.EncodedFileOutput(
        file_type=api.EncodedFileType.MP4,
        filepath="recordings/{room_name}-{time}.mp4",
        s3=api.S3Upload(
            bucket="your-bucket-name",
            region="auto",
            endpoint="<https://your-project-id.fra1.storage.supabase.com>",
            access_key="your-supabase-access-key",
            secret="your-supabase-secret-key",
            force_path_style=True
        )
    )]
)
Just a quick reminder: make sure
ForcePathStyle
is set to
true
to keep everything running smoothly. If you have any questions or need a hand with the setup, I’m here to help—just let me know!