Skip to content

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

Notifications You must be signed in to change notification settings

enspyrco/livekit_token_endpoint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published