reference/ is one complete client site on the plugin (made-up company, pl/en, MongoDB, every library block and template, token standard light/dark, forms, consent, SEO/GEO, enforced CSP, 2FA, base + demo seeds, Coolify runbook, smoke tests). It uses the plugin as file:.. (injected) and is not shipped. - docs/agent/reference-site/INDEX.md (generated by scripts/reference-index.mjs, kept current by test/referenceIndex.test.ts) - AGENT.md section and pointers in ipal-site, ipal-setup, ipal-reference, ipal-upgrade, ipal-block; release steps in PROGRAMISTA §8.1b - CI: reference (fast) on every push, reference-full on main; doctor steps wired, commented until ipal-doctor ships Co-Authored-By: Claude Opus 5.5 <[email protected]>
44 lines
1.8 KiB
Bash
44 lines
1.8 KiB
Bash
# Example Studio — reference site for @intecion/ipal-kit. Copy to .env for local work.
|
|
# Production values live in the Coolify app → Environment Variables (docs/DEPLOY.md), never in the repo.
|
|
|
|
# MongoDB — database name from databaseNamesFor('example-studio.pl'): example-studiopl_dev / example-studiopl_prod
|
|
DATABASE_URI=mongodb://127.0.0.1:27017/example-studiopl_dev
|
|
# Random, at least 32 characters
|
|
PAYLOAD_SECRET=
|
|
# Canonical, hreflang, sitemap, OG — the production URL in Coolify
|
|
NEXT_PUBLIC_SERVER_URL=http://localhost:3000
|
|
|
|
# Client IP header for rate limits and consent records (x-forwarded-for behind Coolify's proxy)
|
|
IPAL_IP_HEADER=x-forwarded-for
|
|
# 1 only on a staging copy (noindex everywhere, no IndexNow)
|
|
IPAL_NOINDEX=
|
|
|
|
# Local and CI production builds only (pnpm build && pnpm start without R2): 1 = media on local disk.
|
|
# NEVER set in Coolify — production requires R2.
|
|
ALLOW_LOCAL_MEDIA=
|
|
|
|
# Cloudflare R2 — all or none; empty = media on local disk (dev)
|
|
R2_BUCKET=
|
|
R2_ENDPOINT=
|
|
R2_ACCESS_KEY_ID=
|
|
R2_SECRET_ACCESS_KEY=
|
|
R2_PUBLIC_URL=
|
|
|
|
# Turnstile — Cloudflare test keys in dev (always pass); production keys go into Site integrations
|
|
NEXT_PUBLIC_TURNSTILE_SITE_KEY=1x00000000000000000000AA
|
|
TURNSTILE_SECRET_KEY=1x0000000000000000000000000000000AA
|
|
|
|
# Cookie scanner "Crawl site" — the shared services/cookie-crawler deployment
|
|
IPAL_COOKIE_SCAN_URL=
|
|
IPAL_COOKIE_SCAN_TOKEN=
|
|
|
|
# IndexNow key (or generate one in Site integrations)
|
|
INDEXNOW_KEY=
|
|
|
|
# Smoke tests only (e2e/, pnpm test:e2e) — a test admin on the LOCAL / CI database, created by
|
|
# e2e/create-test-admin.ts with a known TOTP secret so the test signs in through the real 2FA screen.
|
|
# Test values, never used anywhere else; the script refuses a production or non-local database.
|
|
E2E_ADMIN_EMAIL=[email protected]
|
|
E2E_ADMIN_PASSWORD=e2e-RC2nC29eKC8HJHfg
|
|
E2E_TOTP_SECRET=JPURUZNWYTZX2L42MT4SS7736WWNQWBL
|