Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 1.15 KB

README.md

File metadata and controls

42 lines (26 loc) · 1.15 KB

Livekit Token Endpoint

A web service in Rust on Cloud Run that creates a token for use with LiveKit.

Uses Cloud Build to deploy to Cloud Run.

The following excellent blogposts explain in more detail how to set things up:

Set the GCP project

gcloud config get-value project
gcloud projects list
gcloud config set project <project_id>

Enable APIs

Make sure Cloud Run Admin and Cloud Build APIs are enabled on the GCP project.

Set required permissions

Give the Cloud Build service account permissions to deploy to Cloud Run.

Screenshot

Deploy

gcloud builds submit .

Add Required Environment Variables

gcloud run services update livekit-token-endpoint --update-env-vars LIVEKIT_API_KEY=VALUE1,LIVEKIT_API_SECRET=VALUE2

The values are available when you create a key at https://cloud.livekit.io/projects/<project_id>/settings/keys