1{
2 "$schema": "node_modules/wrangler/config-schema.json",
3 "name": "commonroom-turn",
4 "main": "src/index.ts",
5 "compatibility_date": "2026-08-01",
6 "observability": {
7 "enabled": true
8 },
9 "vars": {
10 // Origins allowed to call this Worker. Replace with your deployed page —
11 // e.g. "https://concept-collection.github.io" — keeping localhost for
12 // `npm run dev`. "*" allows any origin.
13 "ALLOWED_ORIGINS": "http://localhost:5173,https://concept-collection.github.io",
14 // Lifetime of an issued credential, in seconds. Credentials are shared
15 // with the whole room, so this is also how long a leaked one stays useful.
16 "CREDENTIAL_TTL": "21600"
17 }
18 // Secrets (set with `npx wrangler secret put <NAME>`, never committed):
19 // TURN_KEY_ID — from the Cloudflare dashboard, Realtime -> TURN
20 // TURN_KEY_API_TOKEN — the API token paired with that TURN key
21 // ROOM_TOKENS — tokens you hand to people, comma-separated
22}