PalveronPalveronDocs

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

VariableStart behaviorDescription
DATABASE_URLBoot stops alwaysPostgreSQL connection string
PALVERON_DASHBOARD_URLBoot stops in productionPublic dashboard address; billing return addresses need it
TRACE_ENCRYPTION_ROOT_KEYBoot stops in productionEncrypts the stored records (openssl rand -base64 32)
FLARE_ENCRYPTION_KEYBoot stops in productionEncrypts the wallet signing keys
DLQ_ENCRYPTION_KEYBoot stops in productionEncrypts 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

VariableDefaultDescription
PORT8080HTTP listen port
HOST127.0.0.1Bind 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/ngePath 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_URLhttps://coston2-api.flare.network/ext/C/rpcSwitch 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

VariableDescription
DATABASE_URLPostgreSQL, same DB as the gateway
KINDE_CLIENT_IDKinde OIDC client ID
KINDE_CLIENT_SECRETKinde OIDC client secret
KINDE_ISSUER_URLKinde issuer URL (e.g. https://palveron.kinde.com)
KINDE_SITE_URLPublic dashboard address for the OAuth redirect; Compose and the Helm chart set it from your public URL
KINDE_POST_LOGIN_REDIRECT_URLDestination after login; set by Compose and the chart from the public URL
KINDE_POST_LOGOUT_REDIRECT_URLDestination after logout; set by Compose and the chart from the public URL
INTERNAL_PROXY_SECRETMust match the gateway's value

Optional

VariableDefaultDescription
PALVERON_CORE_INTERNAL_URLhttp://127.0.0.1:8080Container-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_URLhttp://localhost:8080Public 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.

ServicePathHealthy response
GatewayGET /health200: pure liveness (process alive; no dependency checks)
GatewayGET /ready200 unless Postgres is critical/unprobed (reads the cached health state, never probes inline)
DashboardGET /api/health200 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

EndpointDescription
GET /metricsPrometheus exposition on the gateway port, including governance-availability, trace-durability and DLQ-replay-p95 SLO gauges
GET /api/v1/integrity/statusTamper-detection status, checked regularly (API-key auth)
GET /api/v1/admin/system-healthSystem health for the admin panel (admin role required)

Retry & rate-limit behavior

The gateway returns:

  • 429 Too Many Requests with a Retry-After header and a structured body (limit_type: rpm or monthly) when a rate limit is hit
  • 503 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 returns 200 with the X-Palveron-Trace-Persisted: none header.

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.

On this page