Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Simple Worker to issue Cloudflare TURN Credential

->
GET /api/credentials/generate for credential

<-
{
  "urls": "turn:turn.cloudflare.com:3478",
  "username": "xxx",
  "credential": "yyy"
}
env Description default
KV KV namespace -
ACCOUNT_TAG Cloudflare account id -
ANALYTICS_TOKEN Account - Account Analytics - read -
CREDENTIAL_TTL max 48h (172800s) 86400
EGRESS_LIMIT Cloudflare to client data transfer 700
TURN_KEY_ID - -
TURN_KEY_SECRET - -
IPV4_CREDENTIAL_GENERATE_RATE_LIMITER for /32 IPv4 not set, but necessary
IPV6_CREDENTIAL_GENERATE_RATE_LIMITER for /64 IPv6 not set, but necessary

add cron for egress usage check and limit

credit to Claude 3.7 Sonnet

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages