# Copy to .env and fill in. The web app (apps/web) runs on 3000, so the API uses 3001. PORT=3001 # How many reverse proxies (Caddy, nginx, a load balancer) stand between # browsers and the API. 0 in development; 1 behind docker-compose.yml's Caddy. # Rate limits count per caller's address, which is the proxy's unless this is right. # TRUST_PROXY=0 # "false" lifts the limits on how often routes may be called. # RATE_LIMIT=true # Matches docker-compose.local.yml in the repo root. DATABASE_URL=postgres://postgres:postgres@localhost:5432/electro4ort # Matches docker-compose.local.yml in the repo root. REDIS_URL=redis://localhost:6379 # Generate with: openssl rand -base64 32 BETTER_AUTH_SECRET= # Public URL of this API. BETTER_AUTH_URL=http://localhost:3001 # Comma-separated origins allowed to call the auth endpoints (CORS + CSRF check). TRUSTED_ORIGINS=http://localhost:3000 # Where uploaded files are kept. "local" is a folder (STORAGE_LOCAL_ROOT, # ".storage" by default) and needs nothing else. "s3" is an S3 bucket or any # store that speaks S3 (Cloudflare R2, Backblaze B2, a self-hosted one). STORAGE_DRIVER=local # For STORAGE_DRIVER=s3. Browsers send files straight to the bucket, so its # CORS rules must allow PUT and GET from the web app's origin with the # Content-Type header. # S3_BUCKET= # S3_REGION= # S3_ENDPOINT= # S3_FORCE_PATH_STYLE=true # S3_ACCESS_KEY_ID= # S3_SECRET_ACCESS_KEY= # Voice and video calls go through a LiveKit server; leave these out to switch # calls off. The values match docker-compose.local.yml in the repo root, which # also tells LiveKit to report who joins and leaves to POST /livekit/webhook. # In production: the wss:// address browsers reach, and a key pair of its own. LIVEKIT_URL=ws://localhost:7880 # Where the API itself reaches it, if that differs from what browsers use # (its name on a private network, say). http:// or https://. # LIVEKIT_INTERNAL_URL= LIVEKIT_API_KEY=devkey LIVEKIT_API_SECRET=local-development-secret-0123456789