Files
core/.env.example
T
hykocx a3921a0b98 feat(database): refactor CLI, add column whitelist, and SSL config
- Add `ZEN_DB_SSL_DISABLED` env variable to allow disabling SSL for database connections
- Refactor database CLI to split init logic into `initFeatures` and `initModules` for modular table initialization, with graceful fallback when modules are absent
- Extract `printHelp` and `askConfirmation` helpers for cleaner CLI structure
- Ensure `closePool` is called on both success and error paths in CLI
- Add `filterAllowedColumns` utility in `crud.js` to enforce column whitelists, preventing mass-assignment of privileged fields (e.g. `role`, `email_verified`)
- Update drop command description from "auth tables" to "all tables"
2026-04-13 16:35:23 -04:00

46 lines
994 B
Bash

# CORE
NEXT_PUBLIC_URL=http://localhost:3000
NEXT_PUBLIC_URL_DEV=http://localhost:3000
ZEN_NAME=ZEN
# CONFIG
ZEN_TIMEZONE=America/Toronto
ZEN_DATE_FORMAT=YYYY-MM-DD
ZEN_CURRENCY=CAD
ZEN_CURRENCY_SYMBOL=$
ZEN_SUPPORT_EMAIL=support@exemple.com
# DATABASE
ZEN_DATABASE_URL=postgres://USER:PASSWORD@HOST:PORT/postgres
ZEN_DATABASE_URL_DEV=postgres://USER:PASSWORD@HOST:PORT/postgres_dev
ZEN_DB_SSL_DISABLED=false
# STORAGE (Cloudflare R2 for now)
ZEN_STORAGE_BUCKET=my-bucket-name
ZEN_STORAGE_REGION=your-account-id
ZEN_STORAGE_ACCESS_KEY=
ZEN_STORAGE_SECRET_KEY=
# EMAIL
ZEN_EMAIL_RESEND_APIKEY=
ZEN_EMAIL_FROM_NAME="EXEMPLE"
ZEN_EMAIL_FROM_ADDRESS=app@exemple.com
ZEN_EMAIL_LOGO=
ZEN_EMAIL_LOGO_URL=
# STRIPE
STRIPE_SECRET_KEY=
STRIPE_PUBLISHABLE_KEY=
STRIPE_WEBHOOK_SECRET=
# AUTH SETTINGS
ZEN_AUTH_REDIRECT_AFTER_LOGIN=/admin
ZEN_AUTH_SESSION_COOKIE_NAME=zen_session
# PUBLIC SETTINGS
ZEN_PUBLIC_LOGO_WHITE=
ZEN_PUBLIC_LOGO_BLACK=
ZEN_PUBLIC_LOGO_URL=
# OTHERS
NEXT_TELEMETRY_DISABLED=1