# ─────────────────────────── Core ─────────────────────────── # External Postgres (also hosts the pg-boss queue schema). Used by Prisma + pg-boss. DATABASE_URL="postgresql://user:password@host:5432/podcast-distribution-ai?schema=public" # Better Auth — generate a strong secret: `openssl rand -base64 32` BETTER_AUTH_SECRET="change-me" BETTER_AUTH_URL="http://localhost:3000" # The canonical public origin. Also the SEO source of truth: canonical tags, the # sitemap, robots.txt and Open Graph URLs are all built from it, so it must be the # exact production origin (https, correct www/non-www, no trailing slash). # It is a NEXT_PUBLIC_* var, so it is inlined at BUILD time — set it as a build arg # too (see Dockerfile). A production build fails fast if it is missing, rather than # shipping canonicals that point at localhost. NEXT_PUBLIC_APP_URL="http://localhost:3000" # ─────────────────────────── SEO / search consoles ────────── # Optional site-ownership tokens. Leave empty to omit the verification meta tags. NEXT_PUBLIC_GOOGLE_SITE_VERIFICATION="" NEXT_PUBLIC_BING_SITE_VERIFICATION="" # ─────────────────────────── Analytics (Umami) ────────────── # Self-hosted Umami. Leave either value empty to disable analytics entirely # (the default in development) — no script is rendered and no rewrite is added. # The tracker is proxied through this app at /_a, so the CSP stays untouched and # content blockers leave it alone; nothing needs allowlisting. # Both are read at BUILD time by statically rendered pages, so they must also be # passed as build args (see Dockerfile). UMAMI_HOST_URL="https://fickanalytics.phluit.net" UMAMI_WEBSITE_ID="98f83e69-cea1-435d-a002-6facea09764a" # ─────────────────────────── OAuth ────────────────────────── GOOGLE_CLIENT_ID="" GOOGLE_CLIENT_SECRET="" # ─────────────────────────── Bot protection ───────────────── # Cloudflare Turnstile guards the sign-in, sign-up and password-reset endpoints. # Create a widget at https://dash.cloudflare.com → Turnstile. # REQUIRED in production — the app refuses to boot without the secret key. # Leave both blank in dev to skip the challenge entirely. # The site key is read at RUNTIME (server-rendered into the page), so it does not # need to be a Docker build arg. NEXT_PUBLIC_TURNSTILE_SITE_KEY="" TURNSTILE_SECRET_KEY="" # ─────────────────────────── AI providers ─────────────────── OPENAI_API_KEY="" ELEVENLABS_API_KEY="" # ─────────────────────────── Local-disk storage ───────────── # Absolute path on the VPS where generated MP3s/art are written. Excluded from deploys. STORAGE_DIR="./storage" # Public base path for cover art served by nginx (maps to STORAGE_DIR/art). MEDIA_PUBLIC_BASE_URL="/media" # ─────────────────────────── Billing: Stripe ──────────────── STRIPE_SECRET_KEY="" STRIPE_WEBHOOK_SECRET="" NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY="" STRIPE_PRICE_CREATOR_MONTHLY="" STRIPE_PRICE_CREATOR_YEARLY="" STRIPE_PRICE_PRO_MONTHLY="" STRIPE_PRICE_PRO_YEARLY="" STRIPE_PRICE_AGENCY_MONTHLY="" STRIPE_PRICE_AGENCY_YEARLY="" # ─────────────────────────── Billing: PayPal ──────────────── PAYPAL_CLIENT_ID="" PAYPAL_CLIENT_SECRET="" PAYPAL_WEBHOOK_ID="" # https://api-m.sandbox.paypal.com (sandbox) | https://api-m.paypal.com (live) PAYPAL_API_BASE="https://api-m.sandbox.paypal.com" PAYPAL_PLAN_CREATOR="" PAYPAL_PLAN_PRO="" PAYPAL_PLAN_AGENCY="" # ─────────────────────────── Email ────────────────────────── RESEND_API_KEY="" EMAIL_FROM="Podcast Distribution AI " # ─────────────────────────── Worker ───────────────────────── # Max concurrent audio-generation jobs on the worker process (keep low on a shared VPS). WORKER_CONCURRENCY="2"