Configuration
Environment variables, defaults, and health endpoints for the Palveron stack.
This page lists the required values, the common options, and the health endpoints for self-hosters.
Gateway (palveron-gateway)
Required
| Variable | Start behavior | Description |
|---|---|---|
DATABASE_URL | Boot stops always | PostgreSQL connection string |
PALVERON_DASHBOARD_URL | Boot stops in production | Public dashboard address; billing return addresses need it |
TRACE_ENCRYPTION_ROOT_KEY | Boot stops in production | Encrypts the stored records (openssl rand -base64 32) |
FLARE_ENCRYPTION_KEY | Boot stops in production | Encrypts the wallet signing keys |
DLQ_ENCRYPTION_KEY | Boot stops in production | Encrypts the fallback buffer (DLQ) during a database outage (in dev/test, unset means no DLQ) |
A missing recommended value only logs a warning at start and turns off one capability each: PALVERON_ENCRYPTION_KEY (stored model key endpoint, 503 without it), PALVERON_PUBLIC_URL (falls back to http://localhost:8080), INTERNAL_PROXY_SECRET (dashboard trust, 403 without it), OPENAI_API_KEY (managed model path), OPERATOR_API_KEY (/operator/* and /health/detailed), and RESEND_API_KEY (e-mail notifications).
Optional
| Variable | Default | Description |
|---|---|---|
PORT | 8080 | HTTP listen port |
HOST | 127.0.0.1 | Bind address. Set to 0.0.0.0 so the service is reachable in a container. |
REDIS_URL | — | Enables rate-limit cache and approval queue cache when set |
RUST_LOG | — | Log filter (tracing-subscriber), e.g. palveron_gateway=info,tower_http=info |
NGE_MODELS_DIR | ./models/nge | Path to the ONNX model directory |
FLARE_PRIVATE_KEY | — | Hex-encoded key for managed-wallet anchoring |
FLARE_CONTRACT_ADDRESS_COSTON2 / FLARE_CONTRACT_ADDRESS_MAINNET | — | Notary contract address per network |
FLARE_RPC_URL | https://coston2-api.flare.network/ext/C/rpc | Switch to the mainnet RPC for production |
The analysis mode (nge_local / nge_fallback / nge_shadow / llm_only / self_hosted) is set per project in the dashboard, not through an environment variable.
Dashboard (palveron-nexus)
Required
| Variable | Description |
|---|---|
DATABASE_URL | PostgreSQL, same DB as the gateway |
KINDE_CLIENT_ID | Kinde OIDC client ID |
KINDE_CLIENT_SECRET | Kinde OIDC client secret |
KINDE_ISSUER_URL | Kinde issuer URL (e.g. https://palveron.kinde.com) |
KINDE_SITE_URL | Public dashboard address for the OAuth redirect; Compose and the Helm chart set it from your public URL |
KINDE_POST_LOGIN_REDIRECT_URL | Destination after login; set by Compose and the chart from the public URL |
KINDE_POST_LOGOUT_REDIRECT_URL | Destination after logout; set by Compose and the chart from the public URL |
INTERNAL_PROXY_SECRET | Must match the gateway's value |
Optional
| Variable | Default | Description |
|---|---|---|
PALVERON_CORE_INTERNAL_URL | http://127.0.0.1:8080 | Container-to-container gateway URL; the production compose file sets it to http://gateway:8080, the Helm chart to the in-cluster service address |
NEXT_PUBLIC_PALVERON_CORE_URL | http://localhost:8080 | Public gateway URL for client-side calls. Next.js embeds the value when the image is built; a value set only on the running container does not reach the browser, and the build argument in the compose file has no effect because Dockerfile.platform does not declare it. If the value is missing at build time, the browser falls back to http://localhost:8080 (see Helm guide). |
RESEND_API_KEY | — | Required only if email notifications are enabled |
STRIPE_SECRET_KEY | — | Required only when self-billing through Stripe |
STRIPE_WEBHOOK_SECRET | — | Used to verify Stripe webhooks |
Health endpoints
Every service exposes a health endpoint. Use them in liveness/readiness probes and uptime monitors.
| Service | Path | Healthy response |
|---|---|---|
| Gateway | GET /health | 200: pure liveness (process alive; no dependency checks) |
| Gateway | GET /ready | 200 unless Postgres is critical/unprobed (reads the cached health state, never probes inline) |
| Dashboard | GET /api/health | 200 with build metadata |
The gateway's /health does not indicate readiness; use /ready for load-balancer probes during deployments. A full subsystem snapshot is available at GET /health/detailed, gated by the X-Palveron-Operator-Key header (503 when OPERATOR_API_KEY is unset).
Observability
| Endpoint | Description |
|---|---|
GET /metrics | Prometheus exposition on the gateway port, including governance-availability, trace-durability and DLQ-replay-p95 SLO gauges |
GET /api/v1/integrity/status | Tamper-detection status, checked regularly (API-key auth) |
GET /api/v1/admin/system-health | System health for the admin panel (admin role required) |
Retry & rate-limit behavior
The gateway returns:
429 Too Many Requestswith aRetry-Afterheader and a structured body (limit_type:rpmormonthly) when a rate limit is hit503 Service Unavailable(empty body) on the SDK/verify and proxy paths when a governance decision could not be durably recorded (database and DLQ unavailable); retry with backoff. The MCP path has no DLQ fallback: there the tool has already answered, and a failed save returns200with theX-Palveron-Trace-Persisted: noneheader.
Official SDKs honor Retry-After and retry transient 5xx/timeout errors with exponential backoff and jitter. When building custom clients, replicate the same pattern.
Use the commented .env.example of the gateway as a template (copy the required values into .env.production and fill them in) and the commented values.yaml of the Helm chart (deploy/charts/palveron). Self-hosting is not sold self-service at launch; how to obtain sources and images is arranged with sales as a design partner.