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:
- https://jgunnink.substack.com/p/rustless-serverless-rust
- https://blog.logrocket.com/packaging-a-rust-web-service-using-docker
gcloud config get-value project
gcloud projects list
gcloud config set project <project_id>
Make sure Cloud Run Admin and Cloud Build APIs are enabled on the GCP project.
Give the Cloud Build service account permissions to deploy to Cloud Run.
gcloud builds submit .
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