Production environment variables
Look up the production image, origin, domain, secret, storage, authentication, email, proxy, worker, and lifecycle settings Nibleaf consumes.
- 16 min read
- Updated
On this page
Start from .env.production.example shipped with the release. This page explains
the setting groups for the current source. The pinned v0.2.1 Compose file and
its image have a separate release boundary. Never commit a populated .env.
The first tables use production Compose defaults unless marked otherwise. The
search, analytics, connection, and logging tables below give schema defaults.
An empty value is treated as unset by the env schemas. Optional means the
process can parse without it; a feature may still require it. A value in .env
does not reach a container unless Compose passes it in environment or
env_file. See the release wiring notes at the end before changing a setting.
| Variable | Required | Default | Purpose |
|---|---|---|---|
NIBLEAF_VERSION | Yes in practice | v0.2.1 in the current template | GHCR release tag. Pin an existing release; avoid floating tags. The manual Docker workflow rejects overwriting an existing v* release tag, making published version tags immutable by repository policy. |
APP_URL | Yes | None | Browser-facing dashboard and normal authentication origin, without a trailing slash. |
ADMIN_URL | Only when admin is exposed | http://localhost:4315 | Public origin for the optional operator console. |
NIBLEAF_BIND | No | 127.0.0.1 | Host interface for the app port. Keep loopback when the proxy is local. |
APP_PORT | No | 4310 | Host port mapped to the app container. |
BETTER_AUTH_URL | No | APP_URL | Explicit authentication base override. |
TRUSTED_ORIGINS | No | APP_URL | Comma-separated authentication origins. Include both APP_URL and ADMIN_URL when the operator console is exposed so native support impersonation can begin there. |
CORS_ALLOWED_ORIGINS | No | APP_URL | Comma-separated API origins. Include both APP_URL and ADMIN_URL when the operator console calls the shared API directly. |
PINO_LOG_LEVEL | No | info in production | Minimum structured log level. |
PINO_LOG_FILE | No | Empty | Deprecated compatibility setting in current source: only its parent directory selects the evlog file drain; the requested filename is not preserved. Prefer EVLOG_FS_DIR. Mount the directory to persist logs. |
| Variable | Required | Default | Purpose |
|---|---|---|---|
SITE_BASE_DOMAIN | No | Empty | Enables <project>.<base-domain> publishing; requires wildcard DNS and TLS. |
CUSTOM_DOMAIN_CNAME_TARGET | No | SITE_BASE_DOMAIN | Operator-controlled CNAME target shown to custom-domain owners. |
CUSTOM_DOMAIN_PROVIDER | No | ingress | Custom-domain automation strategy supported by the release. |
CLOUDFLARE_SAAS_ZONE_ID | For Cloudflare for SaaS | Empty | Zone identifier for managed custom hostnames. |
CLOUDFLARE_SAAS_API_TOKEN | For Cloudflare for SaaS | Empty | Narrow token for custom-hostname operations. |
CLOUDFLARE_SAAS_WORKER_SCRIPT | No | nibleaf-custom-domain-edge | Edge worker script name. |
CUSTOM_DOMAIN_EDGE_SECRET | For the managed edge path | Empty | Shared edge-to-origin authentication secret. |
| Variable | Required | Purpose |
|---|---|---|
BETTER_AUTH_SECRET | Yes | Signs authentication state and encrypts the MCP OAuth signing keys. Generate independently with openssl rand -hex 32. After rotating it, delete the rows in the jwks table so new signing keys are created; otherwise OAuth token requests fail with a server error. Connected AI apps then sign in again. |
POSTGRES_PASSWORD | Yes | Password for the bundled Nibleaf database user. |
INTERNAL_API_SECRET | Strongly recommended | Authenticates trusted app-to-API hints used for accurate rate limiting. |
| Variable | Required | Default | Purpose |
|---|---|---|---|
STORAGE_PROVIDER | No | maxio | Provider behavior such as maxio, r2, or another supported S3-compatible mode. |
STORAGE_ENDPOINT | For external storage | http://maxio:9000 | Server-to-storage endpoint. |
STORAGE_PUBLIC_ENDPOINT | Yes | None | Browser-reachable origin used for presigned requests. |
STORAGE_ACCESS_KEY_ID | Yes | None | Bucket access identifier. |
STORAGE_SECRET_ACCESS_KEY | Yes | None | Bucket secret. Generate independently. |
STORAGE_BUCKET | No | nibleaf | Asset and export bucket. |
STORAGE_REGION | No | auto | S3 region value. |
STORAGE_FORCE_PATH_STYLE | No | true | Use path-style bucket URLs; AWS S3 commonly uses false. |
STORAGE_PUBLIC_URL | Recommended | Empty | Public asset base, often a bucket or CDN URL. |
STORAGE_CORS_ALLOWED_ORIGINS | No | APP_URL | Browser origins allowed to upload directly. |
STORAGE_AUTO_CORS | No | true | Let Nibleaf configure supported bucket CORS automatically. |
MAXIO_SECURE_COOKIES | No | true | Require HTTPS for bundled maxio console cookies. |
| Variable | Required | Default | Purpose |
|---|---|---|---|
DISABLE_SIGNUP | No | false | Close new registration while preserving existing sign-in. |
GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET | For Google sign-in | Empty | OAuth client credentials. |
EMAIL_FROM | For delivery | nibleaf@localhost | Provider-verified sender. |
POSTMARK_API_KEY | For Postmark | Empty | Server token; preferred when set. |
POSTMARK_MESSAGE_STREAM | No | Empty | Postmark stream. |
SMTP_URL | For SMTP fallback | Empty | Full SMTP connection URL. Protect it as a secret. |
EMAIL_DELIVERY_REQUIRED | No | true in production | Return an unhealthy worker status and fail queued email jobs when no provider is configured. |
Create a Web application OAuth client in Google Cloud, then configure:
- Authorized JavaScript origin: the exact
APP_URL, such ashttps://nibleaf.example.com. - Authorized redirect URI:
${APP_URL}/api/auth/callback/google. GOOGLE_CLIENT_IDandGOOGLE_CLIENT_SECRET: the matching client credentials.
Both variables must be present and non-blank after trimming surrounding whitespace. Nibleaf hides the Google button when either value is missing, so a partially configured provider cannot send readers into a broken sign-in flow. Restart the application after changing these server-side values.
| Variable | Required | Default | Purpose |
|---|---|---|---|
OPENROUTER_API_KEY | For editor drafting or instance-managed AI | Empty | Instance OpenRouter credential for drafting, embeddings and answers. A selected workspace search connection uses its own saved key. |
AI_DRAFT_MODEL | No | openai/gpt-6-luna | OpenRouter model used for explicit editor writing actions. |
AI_DAILY_LIMIT | No | 50 | Per-workspace daily editor-drafting request limit; 0 disables drafting. |
MARKETING_GTM_ID | No | Empty | Preferred GTM container ID for public instance marketing pages. It is public metadata and loads only after explicit visitor consent. Configure the GA4 Google tag in GTM with automatic pageviews disabled; Nibleaf pushes one manual page_view per accepted route plus allowlisted events. This variable takes precedence over MARKETING_GA4_ID. |
MARKETING_GA4_ID | No | Empty | Legacy direct-GA4 fallback for existing self-hosters. It loads only after explicit consent and is ignored when MARKETING_GTM_ID is configured. |
RATE_LIMIT_PUBLIC_PER_MIN | No | 300 | Public site-serving requests per address per minute. |
TRUSTED_PROXY_HOPS | No | 0 | Number of addresses after the client in X-Forwarded-For, private ones included. Set the same value on the app and API; see how to count them. |
When MARKETING_GTM_ID is enabled, configure one Google tag in GTM with automatic pageviews disabled and its normal page initialization trigger. Then configure one GA4 Event tag triggered by the Custom Event nibleaf_marketing_event, with its GA event name read from the Data Layer Variable event_name. Nibleaf uses that stable envelope for the allowlisted names page_view, sign_up, cta_clicked, free_tool_started, free_tool_completed, and free_tool_cta_clicked, so six separate GTM Event tags are not required. Map only the documented safe event variables. Do not add variables that read form fields, account data, document content, or arbitrary DOM values into analytics. Keep consent checks enabled on both tags. Nibleaf loads the container only after acceptance, pushes one manual page_view for the accepted route and each later SPA navigation, and stops event delivery when consent is withdrawn.
| Variable | Required | Default | Purpose |
|---|---|---|---|
MCP_ENABLED | No | false | Enables the authenticated project-bound /api/mcp endpoint. Keep it disabled until proxy and key-lifecycle checks pass. |
MCP_ALLOWED_HOSTS | No | Empty | Comma-separated additional public hostnames. API_URL and APP_URL hosts are already allowed. Schemes, paths, wildcard values, and ambiguous forwarded chains are rejected. |
MCP_RATE_LIMIT_PER_MIN | No | 120 | Per-key MCP requests of any kind accepted by one API process per minute. Counters are in memory per process; add an ingress/shared-edge limit for deployment-wide enforcement. |
MCP_WRITE_RATE_LIMIT_PER_MIN | No | 20 | Per-key write tool calls (page drafts, edits, moves, translations, visibility, and publishes) accepted by one API process per minute. preview_publish does not count. |
MCP_PUBLISH_RATE_LIMIT_PER_HOUR | No | 6 | Per-key publish_changes attempts accepted by one API process per hour. Only attempts that pass the preview-token check count. |
See secure MCP client setup and operations before enabling the endpoint. API keys are personal: each member creates their own, admins can revoke any but only the owner can rotate one, and secrets are displayed once. They must not be stored in environment examples or repository configuration.
| Variable | Required | Default | Purpose |
|---|---|---|---|
EXPORT_CHROMIUM_PATH | For PDF outside the official image | /usr/bin/chromium-browser | Chromium-compatible executable used for PDF rendering. |
EXPORT_CONCURRENCY | No | 2 | Export jobs processed by one worker; accepted range is 1–8. |
EXPORT_MAX_ACTIVE_PER_PROJECT | No | 3 | Concurrent project runs accepted by the API. |
EXPORT_MAX_DAILY_PER_PROJECT | No | 20 | Per-project daily run limit. |
EXPORT_MAX_PAGES | No | 5000 | Maximum pages copied into one immutable export snapshot. |
EXPORT_MAX_SNAPSHOT_BYTES | No | 52428800 | Maximum serialized snapshot bytes. |
EXPORT_MAX_ASSET_BYTES | No | 262144000 | Maximum referenced asset bytes copied into an artifact. |
EXPORT_MANUAL_RETENTION_DAYS | No | 7 | Retention for one-time export runs. |
EXPORT_DOWNLOAD_TTL_SECONDS | No | 300 | Presigned download lifetime; accepted range is 30–900 seconds. |
The official image includes Chromium. If WORKER_QUEUES is a comma-separated
allowlist, include export; an empty value enables every queue. An allowlist
must also include erasure, or the stored objects of deleted projects stay in
storage. See Operate hybrid search and grounded answers.
| Variable | Required | Default | Purpose |
|---|---|---|---|
GIT_CREDENTIAL_ENCRYPTION_KEY | To enable two-way Git | None | Exactly 32 bytes encoded as base64; encrypts provider credentials and webhook secrets. |
GIT_WORKER_SECRET | To enable two-way Git | None | At least 32 characters shared by API and worker for opaque callbacks. |
GIT_CONCURRENCY | No | 2 | Git operations processed by one worker. |
Generate the two secrets independently. Do not rotate the encryption key in
place: existing ciphertext cannot be decrypted with a new key. Follow the
Git authoring rotation procedure. If WORKER_QUEUES is set,
include git.
| Variable | Required | Default | Purpose |
|---|---|---|---|
INTEGRATION_CREDENTIAL_ENCRYPTION_KEY | For webhook and workspace AI credentials | None | Independent 32-byte base64 key for versioned AES-256-GCM credential envelopes and purpose-separated HMAC digests. Do not reuse the Git key. |
INTEGRATION_CREDENTIAL_PREVIOUS_KEYS | During key rotation only | Empty | Comma-separated prior integration keys accepted for decrypt and digest lookup during a bounded dual-read window. |
INTEGRATION_CONFIRMATION_TTL_SECONDS | No | 300 | Lifetime of a one-time, revision-bound integration delete confirmation; accepted range is 60–1800 seconds. |
INTEGRATION_CONFIRMATION_RETENTION_HOURS | No | 24 | Retention for consumed confirmation tombstones before bounded cleanup; accepted range is 1–168 hours. Expired unconsumed challenges are removed on the next project challenge. |
INTEGRATION_IDEMPOTENCY_TTL_HOURS | No | 24 | Retention for secret-free durable mutation replays; accepted range is 1–168 hours. |
Follow the rotation and rollback procedure in Integrations engine.
| Variable | Required | Default | Purpose |
|---|---|---|---|
WORKBENCH_USER, WORKBENCH_PASS | Recommended | Empty | Basic authentication for worker operations at port 4312. |
NIBLEAF_RUN_SEED | No | false | Seed demo content during migration; keep false in production. |
SERVER_SHUTDOWN_TIMEOUT_MS | No | 25000 | API drain timeout in milliseconds. |
NIBLEAF_SHUTDOWN_GRACE | No | 30s | Container stop grace; keep longer than the server timeout. |
After changing origins, secrets, or storage, recreate the affected services and repeat the workflow checks in production readiness.
| Variable | Schema default | Requirement and effect |
|---|---|---|
QDRANT_URL | unset | Required for hybrid retrieval; HTTP(S) Qdrant endpoint. |
QDRANT_API_KEY | unset | Optional client key; provision authentication on Qdrant itself too. |
QDRANT_COLLECTION_ALIAS | nibleaf_search_active | Stable read alias; letters, digits, underscore and hyphen only. |
QDRANT_COLLECTION_VERSION | v2 | Physical collection generation; v followed by a positive integer. |
QDRANT_VECTOR_SIZE | SEARCH_EMBEDDING_DIMENSIONS (3072) | Dense-vector dimensions, 64–8192; must match embedding dimensions, and follows them when unset. |
QDRANT_TIMEOUT_MS | 8000 | Qdrant request timeout, 250–120000 ms. |
SEARCH_RUNTIME | shadow | legacy returns Orama; shadow returns Orama while evaluating hybrid; hybrid uses Qdrant. |
SEARCH_FUZZY_TOLERANCE | 2 | Typo tolerance, 0–3; shorter query tokens use less tolerance. |
SEARCH_EMBEDDING_MODEL | openai/text-embedding-3-large | Instance-owned model for API retrieval and worker indexing. |
SEARCH_EMBEDDING_DIMENSIONS | 3072 | Embedding width, 64–8192; changing it requires a compatible new collection. |
SEARCH_EMBEDDING_TIMEOUT_MS | 20000 | Embedding provider timeout, 500–120000 ms. |
SEARCH_CANDIDATE_LIMIT | 48 | Retrieval candidates, 10–200. |
SEARCH_DENSE_MIN_SCORE | 0.35 | Cosine-score threshold before rank fusion, -1 to 1. |
SEARCH_CACHE_TTL_MS | 60000 | Search cache lifetime, 0–3600000 ms. |
SEARCH_ANSWER_ENABLED | false | Enables instance-managed answers; workspace selection and site opt-in are separate. |
SEARCH_ANSWER_MODEL | openai/gpt-6-luna | Instance answer model; a selected workspace connection has its own model. |
SEARCH_ANSWER_TIMEOUT_MS | 30000 | Answer provider timeout, 1000–120000 ms. |
SEARCH_ANSWER_DAILY_PER_PROJECT | 200 | Daily project answer quota, 0–100000; each chat question also counts. |
SEARCH_ANSWER_RATE_LIMIT_PER_MIN | 10 | Per-IP minute limit, 1–1000; separate buckets for answer and chat routes. |
SEARCH_ANSWER_MIN_CONFIDENCE | 0.2 | Minimum retrieval confidence for an answer, 0–1. |
SEARCH_CHAT_MAX_TURNS | 20 | Questions per conversation, 1–200. |
SEARCH_CHAT_MAX_CONVERSATION_TOKENS | 150000 | Conversation token budget, 1000–10000000. The current search overlay and production example set 60000 instead; set 150000 explicitly for the schema default. |
SEARCH_CHAT_DAILY_TOKENS_PER_PROJECT | 2000000 | UTC-day project token budget, 0–1000000000; 0 disables this budget. |
SEARCH_CHAT_HISTORY_MESSAGES | 6 | Prior messages supplied per turn, 0–12. |
SEARCH_CHAT_HISTORY_MAX_TOKENS | 1500 | Estimated history token cap, 0–16000. |
SEARCH_CHAT_UTILITY_MODEL | unset | Optional OpenRouter rewrite/suggestions model, 1–120 characters; unset uses the answer model. |
SEARCH_CHAT_SUGGESTIONS_TIMEOUT_MS | 15000 | Suggestions timeout after the checked answer, 1000–60000 ms. |
| Variable | Schema default | Requirement and effect |
|---|---|---|
ANALYTICS_MODE | disabled | disabled, dual_write, shadow_read or clickhouse; see the staged analytics guide. |
ANALYTICS_HASH_SALT | unset | Required for ClickHouse event ingestion; missing salt drops events. Preserve the existing secret. |
CLICKHOUSE_URL | http://localhost:8123 | ClickHouse HTTP endpoint; source containers use http://clickhouse:8123. |
CLICKHOUSE_DATABASE | nibleaf_analytics | Database name: letter or underscore first, then letters, digits or underscore; at most 63 characters. |
CLICKHOUSE_READER_USERNAME | default | SELECT identity; provision the user and grants separately. |
CLICKHOUSE_READER_PASSWORD | unset | Reader password; optional in schema, required when the server user requires it. |
CLICKHOUSE_WRITER_USERNAME | default | Writer identity; worker also needs reads, erasure, and DDL if boot migrations are on. |
CLICKHOUSE_WRITER_PASSWORD | unset | Writer password; keep it in deployment secrets. |
CLICKHOUSE_REQUEST_TIMEOUT_MS | 5000 | Transport deadline, 250–60000 ms. |
CLICKHOUSE_MAX_BATCH_SIZE | 500 | Maximum events per batch, 1–10000. |
CLICKHOUSE_MAX_BUFFERED_EVENTS | 10000 | Buffer bound, 100–100000 events; not a replacement for durable queues. |
CLICKHOUSE_FLUSH_INTERVAL_MS | 1000 | Batch flush interval, 25–30000 ms. |
CLICKHOUSE_RAW_RETENTION_DAYS | 180 | Human raw-event retention, 7–730 days. |
CLICKHOUSE_CRAWLER_RETENTION_DAYS | 90 | Crawler raw-event retention, 7–730 days. |
CLICKHOUSE_ROLLUP_RETENTION_DAYS | 730 | Aggregate retention, 30–3650 days. |
CLICKHOUSE_SENSITIVE_RETENTION_DAYS | 30 | Opted-in public search-text retention, 1–90 days. |
CLICKHOUSE_MIGRATE_ON_BOOT | true | Worker retries schema migrations in the background; false needs a migration operator. |
AI_CONVERSATION_ENCRYPTION_KEY | unset | Optional 32-byte base64 queue-encryption key on API and worker; otherwise derived from the integration key. With neither key, no conversation text is saved. |
AI_CONVERSATION_RETENTION_DAYS | 90 | Conversation turns and feedback TTL, 1–365 days; same value on API, worker and migration CLI. |
| Variable | Schema default | Requirement and effect |
|---|---|---|
NODE_ENV | development | development, test or production; the official image uses production. |
POSTGRES_URL | postgresql://nibleaf:nibleaf@localhost:5442/nibleaf | Direct-process development default only. Production Compose constructs it from POSTGRES_PASSWORD and postgres:5432; do not use development credentials in production. |
REDIS_HOST | localhost | Queue host; production Compose fixes it to dragonfly. |
REDIS_PORT | 6379 | Queue port; production Compose fixes it to 6379. |
REDIS_PASSWORD | unset | Optional queue authentication. |
REDIS_DB | 0 | Queue database number. |
QUEUE_CLUSTER | true | Hash-tags queue names; keep consistent with Dragonfly hashtag locking. |
WORKER_QUEUES | empty | Comma-separated worker allowlist; empty runs all queues. Include export, git, analytics, search and erasure as needed. |
PUBLISH_CONCURRENCY | 2 | Publish jobs per worker. |
SEARCH_CONCURRENCY | 4 | Search/index jobs per worker. |
EMAIL_CONCURRENCY | 3 | Email jobs per worker. |
ANALYTICS_CONCURRENCY | 10 | Analytics jobs per worker. |
APP_NAME | Nibleaf | API application name. |
API_PORT | 4311 | API listener; fixed to 4311 by production Compose. |
WORKER_PORT | 4312 | Worker listener; fixed to 4312 by production Compose. |
API_URL | http://localhost:4311 | API origin; production Compose uses http://server:4311. |
PORT | 4310 / 4315 | Dashboard/admin listener respectively; separate from the host APP_PORT mapping. |
NITRO_PORT | unset | Optional Nitro listener override for app/admin. |
SERVICE_NAME | nibleaf-api / nibleaf | API health label / logger default respectively. |
ALLOW_SEED | unset | Explicit opt-in for the production seed guard; migration entrypoint passes 1 only when seeding was requested. |
CDN_URL | unset | Optional public asset CDN base in the storage package. |
| Variable | Schema default | Requirement and effect |
|---|---|---|
EVLOG_LOG_LEVEL | info / debug | Production / development fallback; error, warn, info, debug or silent. Overrides PINO_LOG_LEVEL. |
EVLOG_FS_DIR | unset | Optional JSONL drain directory; overrides the parent directory from PINO_LOG_FILE. |
EVLOG_FS_MAX_FILES | 14 | Positive number of retained drain files. |
EVLOG_FS_MAX_SIZE_BYTES | 10000000 | Positive maximum size per drain file. |
VITE_APP_URL | https://nibleaf.com | Build-time public URL; localhost:4310 in development. Admin server also accepts a runtime override. Never put secrets in VITE_ variables. |
VITE_ADMIN_URL | https://admin.nibleaf.com | App build-time admin URL; localhost:4315 in development. |
VITE_GITHUB_URL | https://github.com/lord007tn/nibleaf | App build-time repository link. |
VITE_SITE_BASE_DOMAIN | unset | Optional app build-time project-domain value. |
The pinned docker-compose.prod.yml for v0.2.1 has no ClickHouse or Qdrant
service. It does not pass analytics variables, search variables,
AI_DRAFT_MODEL, MCP_WRITE_RATE_LIMIT_PER_MIN,
MCP_PUBLISH_RATE_LIMIT_PER_HOUR, WORKER_QUEUES, export tuning, or the new
EVLOG_* settings. The corresponding values in .env.production.example are
not proof that they reach a service. A newer setting also requires an image
that implements it; adding an environment variable cannot add a feature to an
older image.
For a reviewed current-source deployment, put missing settings in a separate
Compose override. For example, this docker-compose.operator.yml passes two
MCP controls and a worker queue allowlist (the listed queues enable all current
workers):
services:
server:
environment:
MCP_WRITE_RATE_LIMIT_PER_MIN: ${MCP_WRITE_RATE_LIMIT_PER_MIN:-20}
MCP_PUBLISH_RATE_LIMIT_PER_HOUR: ${MCP_PUBLISH_RATE_LIMIT_PER_HOUR:-6}
worker:
environment:
WORKER_QUEUES: ${WORKER_QUEUES:-publish,search,email,analytics,export,git,erasure}
Include that file in every subsequent operation:
docker compose -f docker-compose.prod.yml -f docker-compose.operator.yml config --services
docker compose -f docker-compose.prod.yml -f docker-compose.operator.yml up -d
In an installer directory use docker-compose.yml as the first file. Keep any
search or analytics overrides in the same command as well. Do not publish the
full rendered configuration; it contains secrets.
docker-compose.search.yml adds Qdrant and a subset of search/chat variables to
API and worker. It does not configure authentication on the Qdrant service when
you set only the client-side QDRANT_API_KEY. Provision the server key too before
exposing Qdrant. SEARCH_CHAT_SUGGESTIONS_TIMEOUT_MS and several advanced search
knobs are not passed by that overlay; add explicit environment mappings if you
change them. Its 60000-token cap differs from the schema default above.
Source quickstart (docker-compose.yml) and Coolify include ClickHouse, backup
disk configuration and the analytics-tools profile. Their bootstrap settings
include CLICKHOUSE_USERNAME / CLICKHOUSE_PASSWORD (quickstart fallback
nibleaf / nibleaf), or SERVICE_PASSWORD_64_CLICKHOUSE (required in Coolify).
These create service credentials; the app uses reader/writer variables instead.
Do not use quickstart credentials for a public deployment.
Coolify also uses NIBLEAF_IMAGE_TAG (fallback latest),
SERVICE_USER_POSTGRES, SERVICE_PASSWORD_64_POSTGRES, POSTGRES_DB (fallback
nibleaf), SERVICE_HEX_64_NIBLEAF, and storage fallbacks SERVICE_USER_STORAGE
and SERVICE_PASSWORD_64_STORAGE. Set an explicit image tag and keep the generated
secrets. These are Compose inputs, not app schema variables. Review that file
before moving a portable .env into Coolify.
After recreating services, verify their actual behavior: health, an upload, publishing, search, and any optional feature you enabled. A parsed environment or a passing health endpoint does not prove mail delivery, AI provider credit, index quality, or backup recovery.