POSTGRES_USER=protobase POSTGRES_PASSWORD=protobase POSTGRES_DB=protobase POSTGRES_PORT=55432 # PgBouncer in transaction mode in front of it, as the cloud runs it; the jobs integration tests go through it. PGBOUNCER_PORT=55442 # Supabase's Postgres image, which `bun run test:record` records the Supabase import's snapshot tests on. SUPABASE_POSTGRES_PORT=55433 DATABASE_URL=postgres://protobase:protobase@localhost:55432/protobase # How `bun run db:up` and `db:down` run these: docker (docker-compose.yml) or local (this machine's Postgres and # PgBouncer as plain processes, with their data in .protobase/postgres; Supabase's Postgres is Docker only). POSTGRES_RUNNER=docker # For local: the folder with initdb, pg_ctl and postgres when they are not on PATH, such as a Homebrew postgresql@18's bin. # POSTGRES_BIN=/opt/homebrew/opt/postgresql@18/bin # Admin store (Better Auth users, sessions, signing keys): the `auth` schema of DATABASE_URL, created by `bun run --cwd tests/apps/erp db:migrate`. # Public URL of the API, for cookies and as the issuer of the login tokens. Unset, protobase dev uses its own address, # such as http://localhost:23456; set it to serve the app or for a tunnel (its https URL). # PROTOBASE_URL=https://admin.example.com # Signs cookies and encrypts the token keys. Generate your own: openssl rand -base64 32 PROTOBASE_SECRET=change-me-generate-with-openssl-rand-base64-32 # After changing it, the secrets it replaced, newest first, comma separated, so the token signing keys keep signing. # PROTOBASE_PREVIOUS_SECRETS= # Extra comma separated origins allowed to call the auth endpoints (a dev tunnel needs its exact host here, such as https://my-tunnel.trycloudflare.com). # PROTOBASE_TRUSTED_ORIGINS= # Mail for password reset and emailed sign-in and two-factor codes: the SMTP server (smtp:// with STARTTLS, or smtps://; ?requireTLS=false for a server without TLS, such as a local mail catcher) and the sender. Without them those are off. # PROTOBASE_SMTP_URL=smtp://user:password@localhost:1025?requireTLS=false # PROTOBASE_MAIL_FROM=noreply@example.com # Error reporting: the DSN of a Sentry-compatible tracker (Sentry, Bugsink, GlitchTip) the app's errors go to. Without it nothing is sent. # PROTOBASE_SENTRY_DSN=https://key@errors.example.com/1