Open History to see the last commit
1# Required: Relay API and managed tunnel domains
2# Production adopts retained DNS zones in your Cloudflare account. The API
3# zone serves relay.<zone> in production and relay-<stage>.<zone> for personal
4# stages. Managed environment endpoints are provisioned below the tunnel zone.
5RELAY_API_ZONE_NAME=example.com
6RELAY_TUNNEL_ZONE_NAME=tunnels.example.com
7
8# Optional: inactive tunnel cleanup. Start with dry-run, verify the cleanup
9# logs, then set enabled. Unset and off both disable cleanup.
10# RELAY_TUNNEL_CLEANUP_MODE=off
11# Optional: cleanup for tunnels whose host never registered recovery, once they
12# have been down for 30 days. Same values, independent of the mode above.
13# RELAY_LEGACY_TUNNEL_CLEANUP_MODE=off
14# Canary stages only: shorten the 30-day legacy grace period, in minutes.
15# Ignored on prod.
16# RELAY_LEGACY_TUNNEL_GRACE_MINUTES=10
17
18# Optional: relay monitors and health dashboard in Axiom. Set the notifier id
19# that pages (incident.io in prod) to create them; unset creates neither, so
20# personal stages never page anyone. Warnings go to their own notifier, or
21# only show in Axiom when it is unset.
22# RELAY_ALERT_NOTIFIER_ID=
23# RELAY_WARNING_NOTIFIER_ID=
24
25# Optional: Relay domain override
26# Set this only when the derived relay hostname should not be used.
27# RELAY_DOMAIN=relay.example.com
28
29# Required: Clerk
30# Get the keys from the Clerk Dashboard under API keys. Set the JWT audience to
31# the `aud` claim configured on the `t3-relay` JWT template.
32CLERK_PUBLISHABLE_KEY=pk_test_...
33CLERK_SECRET_KEY=sk_test_...
34CLERK_JWT_AUDIENCE=t3-code-relay
35# Optional: deletes a user's relay data when Clerk deletes the user. Create a
36# webhook endpoint at https://<relay domain>/v1/webhooks/clerk subscribed to
37# `user.deleted` and paste its signing secret here. Unset disables the route.
38# CLERK_WEBHOOK_SIGNING_SECRET=whsec_...
39
40# Apple Push Notification service (required unless APNS_ENABLED=false)
41# Set APNS_ENABLED=false for an Android-only development relay.
42# Get these values from your Apple Developer account. Use `sandbox` for
43# development APNs credentials and `production` for production credentials.
44APNS_ENVIRONMENT=sandbox
45APNS_TEAM_ID=...
46APNS_KEY_ID=...
47APNS_BUNDLE_ID=...
48APNS_PRIVATE_KEY=...
49
50# Optional: Android push. Set this secret to the service account JSON from
51# Firebase Project settings > Service accounts. Never put it in an app build.
52# FCM_SERVICE_ACCOUNT={...}