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
36# Apple Push Notification service (required unless APNS_ENABLED=false)
37# Set APNS_ENABLED=false for an Android-only development relay.
38# Get these values from your Apple Developer account. Use `sandbox` for
39# development APNs credentials and `production` for production credentials.
40APNS_ENVIRONMENT=sandbox
41APNS_TEAM_ID=...
42APNS_KEY_ID=...
43APNS_BUNDLE_ID=...
44APNS_PRIVATE_KEY=...
45
46# Optional: Android push. Set this secret to the service account JSON from
47# Firebase Project settings > Service accounts. Never put it in an app build.
48# FCM_SERVICE_ACCOUNT={...}