openvisengine/.env.ove
zai-bot 621bbc662c v7.15.3 — self-healing sandbox boot: tracked .env.ove + db seed + secrets/
Operator-authorized for the strictly private self-hosted Forgejo repo:
the env template (.env.ove), a baseline database snapshot
(db/custom.db.seed) and secrets/ now ride with the repo so sandbox
reprovisions can never wipe them. dev.sh self-heals at the very top
(before bun install): .env is restored from .env.ove whenever it lacks
OVE_DIRECTORY_API_KEY, and db/custom.db from the seed whenever it is
missing — verified end-to-end against a faithful reset simulation
(both [SELF-HEAL] restores fire, 106-preset library serves, directory
proxy authenticated, browser clean).

One evidence-driven deviation from the requested values: DATABASE_URL
is file:../db/custom.db, not file:./db/custom.db — Prisma resolves
relative SQLite paths against prisma/schema.prisma's directory, so the
./ form provably breaks both the CLI (would create a fresh empty db at
prisma/db/custom.db on every boot) and the runtime (cannot open); the
../ form is the portable equivalent and is documented in .env.ove's
header. secrets/ ships with a README documenting the house-cookie file
slots (the actual cookie exports are re-added by the operator).
2026-11-06 08:00:46 +00:00

15 lines
945 B
Text

# OVE — env template (v7.15.3). TRACKED in the strictly private, self-hosted
# Forgejo repo (gitzcreations/openvisengine) by explicit operator
# authorization, so sandbox reprovisions can never wipe it. .zscripts/dev.sh
# copies this file over .env whenever .env is missing OVE_DIRECTORY_API_KEY
# (the sandbox bootstrap rewrites .env to a bare DATABASE_URL line on every
# reprovision). The live .env itself stays untracked.
#
# NOTE on DATABASE_URL: Prisma resolves relative SQLite paths against
# prisma/schema.prisma's directory, NOT the project root — so the portable
# form is ../db/custom.db (= <repo>/db/custom.db). A literal ./db/custom.db
# would resolve to <repo>/prisma/db/custom.db and break both the Prisma CLI
# and the runtime (verified empirically — worklog Task 47).
DATABASE_URL=file:../db/custom.db
OVE_DIRECTORY_URL=https://s3374dir.openvisengine.com
OVE_DIRECTORY_API_KEY=+7MkRB+hkV0UBhPqM1haTQ0f8JGKqkuXwoBTdTSAouU=