Nokku LogoNokku
Nokku LogoNokku

Configuration

Environment variables for running the Nokku core.

Last updated on Aug 3, 2026

The core reads configuration from environment variables and command-line flags. The exact deployment requirements depend on the selected storage, encryption, email, authentication, and billing integrations.

Common settings

VariablePurpose
NOKKU_BASE_URLPublic base URL of the deployment
NOKKU_PORTPort the core listens on
NOKKU_SECRET32-byte self-hosted encryption secret
KMS_URIExternal key-management URI used when NOKKU_SECRET is not set
NOKKU_LICENSE_KEYEnterprise license key for self-hosted instances
NOKKU_TRUSTED_PROXIESComma-separated reverse-proxy IPs/CIDRs (e.g. Traefik) whose forwarded client IP headers are honored

PostgreSQL is required by the core. Consult the deployment environment and the core configuration package for the complete set of integration-specific variables.

Secret rotation

Stop the core before rotating encrypted data:

./nokku rotate-secrets --new secret:NEW_SECRET

To use a KMS URI:

./nokku rotate-secrets --new kms:hcvault://localhost:8200/transit/keys/nokku

The command re-encrypts the stored data in one transaction. Update the runtime environment after it succeeds, then start the core.

Health check

The core exposes /healthz. Use it to verify that the process is reachable before diagnosing CLI or daemon authentication.