# =========================================== # Supabase Configuration (required) # Self-hosted on bitbaum, NOT supabase.com — URL is https://supabase.orangecat.ch. # Keys live in /opt/botsmann/shared/.env on the box; ask before minting new ones. # Our tables are in the `botsmann` schema (see lib/constants.ts), not `public` — # `public` belongs to orangecat and shares this database with us. # =========================================== NEXT_PUBLIC_SUPABASE_URL= NEXT_PUBLIC_SUPABASE_ANON_KEY= SUPABASE_SERVICE_ROLE_KEY= # =========================================== # Accounts (@bitbaum/accountkit). The accounts database is a host Postgres # beside the supabase schema (loki accounts-db.conf); provision-db.yml writes # both values on the box. # =========================================== DATABASE_URL= # 32+ characters: `openssl rand -base64 32` BETTER_AUTH_SECRET= # BETTER_AUTH_URL=https://botsmann.orangecat.ch # "Continue with OrangeCat": shown only when both are set # ORANGECAT_OAUTH_CLIENT_ID= # ORANGECAT_OAUTH_CLIENT_SECRET= # The shared bitbaum sign-in: shown only when all three are set # SIGNIN_ISSUER= # SIGNIN_CLIENT_ID= # SIGNIN_CLIENT_SECRET= # Account mail: the emailed sign-in link and recovery are offered only with it # RESEND_API_KEY= # =========================================== # Groq LLM (optional - free tier) # Get your free API key at: https://console.groq.com # 14,400 requests/day on free tier # =========================================== GROQ_API_KEY= # =========================================== # OpenRouter LLM (optional - alternative to Groq) # Get your API key at: https://openrouter.ai/keys # =========================================== OPENROUTER_API_KEY= # =========================================== # Readers' own provider keys (Settings → Infrastructure) # Seals each reader's Groq/OpenRouter key at rest (@bitbaum/ai-kit/seal, # AES-256-GCM). Without it no new key is saved (the screen says so) and chat # keeps using the free models. Generate once: `openssl rand -base64 32`. # ROTATING it makes every sealed key unreadable — readers are asked again. # =========================================== BYOK_SEAL_SECRET= # =========================================== # API Authentication # =========================================== API_KEY= NEXT_PUBLIC_API_KEY= # =========================================== # Email (@bitbaum/mail-kit — Resend, optional) # =========================================== RESEND_API_KEY= RESEND_FROM= # =========================================== # Email Addresses # =========================================== ADMIN_EMAIL= # =========================================== # Loki feedback widget # Mint on Loki → project → Feedback widget. # Must be present at `next build` (self-host CD pulls box .env). Runtime-only # changes after deploy are not enough — Next tree-shakes an empty token. # =========================================== LOKI_FEEDBACK_TOKEN=