Something went wrong. Try again.
Automations and webhooks for the AT Protocol airglow.run
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152PORT=5176# Postgres. Local dev: `docker compose up -d` starts one matching this URL.# Worktrees get their own database (pnpm worktree:setup rewrites this line).DATABASE_URL=postgres://airglow:airglow@localhost:5432/airglow_dev# DATABASE_POOL_MAX=10# Public-facing base URL of the instance. Leave unset in local dev: it derives# from PORT, so the OAuth client metadata can never disagree with the port the# server actually listens on. Setting both is how they drift apart, and OAuth# breaks when they do. Set this in production, where the public URL is not a# localhost address.# PUBLIC_URL=https://airglow.example# Trusted proxy hops, only used as a fallback. In production the rate limiter# prefers Cloudflare's CF-Connecting-IP (the real client IP, not client-# forgeable). This setting only governs the X-Forwarded-For fallback used when# that header is absent (local dev, or a direct-to-origin request): the limiter# keys on the entry the trusted proxy appended, not the client-controlled# leftmost one. Must equal the number of trusting proxies in front of the app:# too low reopens the bypass, too high throttles all clients into one bucket.# Must be a positive integer (the app refuses to start otherwise).## SECURITY: CF-Connecting-IP is only trustworthy while the origin cannot be# reached bypassing Cloudflare. Set CLOUDFLARE_ORIGIN_SECRET below to enforce# that, or a direct-to-origin caller can forge the header.TRUST_PROXY_HOPS=1# Shared secret that locks the origin to Cloudflare. When set, every request# except /healthz must carry a matching X-Origin-Auth header (inject it with a# Cloudflare Transform Rule), so requests bypassing the edge are rejected with# 403. This is what makes CF-Connecting-IP trustworthy. Leave empty in local dev.# Must be at least 32 chars. Generate with: openssl rand -base64 32CLOUDFLARE_ORIGIN_SECRET=PDS_URL=http://localhost:3000COOKIE_SECRET= # openssl rand -base64 32SECRETS_KEY= # optional, enables encrypted user secrets. openssl rand -base64 32# Rotating SECRETS_KEY: put the old value here and a new one in SECRETS_KEY.# Stored secrets are re-encrypted on boot; remove this once the boot log says# "[secrets-rotation] done". See docs/secrets-rotation.md.# SECRETS_KEY_PREVIOUS=NSID_ALLOWLIST=NSID_BLOCKLIST=# Glob patterns (e.g. app.bsky.*) for NSIDs that require automations to# declare a non-empty wantedDids list. Use for high-volume collections# where a firehose-wide subscription would be too noisy.NSID_REQUIRES_DIDS=# Social graph sync (docs/social-graph-sync.md). Defaults shown.# SYNC_SHARD_COUNT=1# SYNC_JETSTREAM_MAX_LOOKBACK_US=86400000000# SYNC_HOURLY_POINTS=1500# SYNC_DAILY_POINTS=15000# Bootstrap admin DIDs, comma-separated. Inserted into the `admins` table on# startup if missing. Admins grant Partner App status via /dashboard/admin.ADMIN_DIDS=