Files
0pt/.env.example
T
SIAX Foundation Bot bd5e309851
CI (SIAX Cloud) / quality (push) Failing after 34s
CI (SIAX Cloud) / security (push) Failing after 36s
chore(foundation): Wave 1 scaffolding — CI gate / Dockerfile / .env.example
2026-07-20 00:01:37 +02:00

62 lines
2.8 KiB
Bash

# =============================================================================
# 0pt web console -- example environment
# =============================================================================
# Copy to `.env` (gitignored) and fill in real values. Every key below is
# actually referenced by the code (derived from `process.env.*` usage); nothing
# here is invented. All secrets are placeholders -- do NOT commit real values.
#
# The app is designed to build and boot with these UNSET: lib/db.ts and
# lib/stripe.ts are lazy + env-guarded, and the storage/payment/doc routes
# return HTTP 501 ("not configured") until the relevant keys are provided.
# ---- Core -------------------------------------------------------------------
# Public base URL of this app (used for absolute links / callbacks).
NEXT_PUBLIC_APP_URL=http://localhost:3000
# ---- Database (Postgres) ----------------------------------------------------
# First one set wins: DATABASE_URL -> POSTGRES_URL -> POSTGRES_PRISMA_URL.
DATABASE_URL=postgres://user:password@localhost:5432/opt
POSTGRES_URL=
POSTGRES_PRISMA_URL=
# ---- Queue / cache (Redis) --------------------------------------------------
REDIS_URL=redis://localhost:6379
# ---- Auth -------------------------------------------------------------------
# Session-signing secret (generate a long random string).
AUTH_SECRET=change-me-long-random-string
# Optional dev-only login shortcut key (leave unset in production).
DEV_LOGIN_KEY=
# Encryption key for stored DB-connection grants (/api/connections/db-grant).
GRANT_ENC_KEY=change-me-32-byte-key
# Shared token for internal/service-to-service calls.
INTERNAL_TOKEN=change-me-internal-token
# ---- Payments (Stripe) ------------------------------------------------------
STRIPE_SECRET_KEY=sk_test_xxx
STRIPE_WEBHOOK_SECRET=whsec_xxx
# ---- Object storage (Cloudflare R2 / S3-compatible) -------------------------
# All three required to enable /api/uploads; otherwise it returns 501.
R2_ENDPOINT=https://<accountid>.r2.cloudflarestorage.com
R2_BUCKET=opt-uploads
R2_ACCESS_KEY_ID=change-me
# Optional local blob dir fallback used when R2 is not configured.
OPT_LOCAL_BLOB_DIR=./.opt-blobs
# ---- Document intelligence (Azure) ------------------------------------------
# Powers document extraction routes; unset => extraction "not configured".
DOC_INTELLIGENCE_ENDPOINT=https://<resource>.cognitiveservices.azure.com
DOC_INTELLIGENCE_KEY=change-me
DOC_INTELLIGENCE_API_VERSION=2024-11-30
# ---- Engine / integrations --------------------------------------------------
# URL of the 0pt data engine (services/api orchestrator).
ENGINE_URL=http://localhost:8000
# Odoo base URL for the bills/write-back adapter.
ODOO_BASE_URL=https://<your-odoo-host>
# ---- Test-only (tests/p0 real-infra suite; not needed to run the app) --------
# ST0RE_URL=
# ST0RE_TEST_TENANT_ID=