Skip to main content
With Self-Managed, you deploy Nango yourself and are responsible for operating it — upgrades, scaling, and on-call — on your own infrastructure, any cloud or on-prem. This gives you the most flexibility over infrastructure, at the cost of running it. See Self-Hosting overview for the architecture, and BYOC if you’d rather have Nango deploy and operate it inside your cloud account for you.

Quickstart

Helm chart

Deploy to your Kubernetes cluster.

Managed image releases

Versioned, pinned Docker images.

nangoctl

Try Nango locally in a kind cluster first.
Custom deployments (e.g., ECS instead of Kubernetes) are possible with our guidance — reach out if the Helm chart isn’t the right fit for your infrastructure.

What leaves your account

Nothing. Self-hosted instances don’t send any telemetry, logs, or data back to Nango automatically. You’re the only one with visibility into your instance, unless you choose to export metrics to your own monitoring tool, or share something with us directly when asking for support.

Where your data lives

Everything runs on your infrastructure, configured by you: See Data storage on the overview page for more, and Security for how credentials are encrypted at rest.

Who’s responsible for what

In short: budget for a platform team that can run Kubernetes in production. Nango ships the images and the chart; you run them.

Encryption & credentials

Encryption is entirely in your hands. At minimum, set NANGO_ENCRYPTION_KEY yourself; if you’d rather not manage it as a flat secret, you can wrap it with your own KMS instead. The most sensitive thing Nango stores is your end users’ connection credentials (OAuth tokens, API keys) for the integrations you connect — encrypted at rest once you’ve set a key, inside your own Postgres. See Security for the full model.

Observability & support

Everything is visible to you, and only you — the dashboard, the audit trail, your logs, your metrics. Nango has no visibility into your instance unless you choose to share something with us. Support follows your contract’s SLA. Reach out through your support channel with what you’re seeing (logs, dashboard state, error messages) — we can’t look at your instance ourselves.

Updates

You pull and apply updates yourself. Notifications about new releases are posted to your dedicated Nango Slack channel, and you can subscribe directly to the NangoHQ/managed-image-releases repository:
  • GitHub: watch the repository, select Custom, and enable Releases.
  • RSS/Atom: subscribe to https://github.com/NangoHQ/managed-image-releases/releases.atom, which can be wired into Slack, Microsoft Teams, RSS readers, or internal automation.
Each release includes the managed image tag, application version, source commit hash, release date, Docker pull reference, a GitHub compare link to the previous managed release, and a generated changelog of changes since the previous managed release.

Image tags

Managed image tags follow this format:
  • managed-release-version: Semantic version for the managed image lifecycle (major = breaking, minor/patch = features/fixes)
  • application-version: Semantic version of the Nango application baked into the image
  • commit-sha: Full Git commit hash of the released source
For example, pull a release from Docker Hub with:
Pin your CLI version to the application-version specified in the tag for compatibility.

Versions and policy

You can find the latest version in managed-manifest.json on managed-image-releases (mirrored from NangoHQ/nango on each release). The in-repo CHANGELOG.md tracks release history. Each managed release maps to a specific source commit, and published image tags are never changed after release. Stay reasonably current with managed image releases. See the full changelog for details on each release.

Cloud provider support

Self-Managed supports all major cloud providers (AWS, GCP, Azure) and on-prem Kubernetes, since you’re the one operating it.

Configuration reference

Everything below is what you configure directly to run a production instance — env vars, secrets, and the hardening options available to you.

Minimum environment variables

Minimum secrets

This is the minimum set to get a production instance running. The sections below cover what each optional subsystem (logs, encryption, audit trail, Redis, hardening) additionally needs.

Encryption key

You must provide your own encryption key via the NANGO_ENCRYPTION_KEY environment variable to enable encryption at rest. It encrypts credentials in the control-plane database as well as data in the records cache. Without this key, credentials are stored unencrypted. The records cache always requires this key. If you run sync functions that persist records, the persist and records services fail to store or retrieve records when NANGO_ENCRYPTION_KEY is not set—they do not fall back to plaintext.
The encryption key must be a base64-encoded 256-bit (32-byte) key. Key rotation is not supported yet—changing the key after initial setup will cause decryption failures. Plan your key management accordingly.
If you’d rather not manage NANGO_ENCRYPTION_KEY as a flat secret, wrap it with your own KMS and set NANGO_ENCRYPTION_KEY_WRAPPED and NANGO_KMS_KEY_ARN instead (see the secrets table above).
NANGO_ENCRYPTION_KEY is also required for Connect UI. It is used to generate sessions for Connect UI. Without this key, Connect UI will not work.

Data retention

The default retention period for deleted connections is 31 days. You can configure this via the CRON_DELETE_OLD_CONNECTIONS_MAX_DAYS environment variable.

Audit trail

The audit trail records control-plane activity — who created a connection, changed an integration, rotated an API key or signed in, from which IP, and whether it succeeded. Self-hosted instances keep it in Postgres, and teammates read it from Audit trail in the dashboard. Enable it on the server:
Without a database there is nowhere to keep entries, so the trail stays off rather than showing a page that never fills. Set NANGO_AUDIT_POSTGRES_SSL=true when the database is external, as with the main one. The URL can point at the database Nango already uses or at a separate one, and the server creates the schema on startup along with the rest of it when NANGO_MIGRATE_AT_START=true. Entries are kept for a year by default, and the server removes expired ones for you:

Feature flags

Nango gates some behavior behind feature flags. Flags are served by the provider set in NANGO_FLAG_PROVIDER, which defaults to noop, so every flag uses its built-in default. To serve flags from environment variables instead, set NANGO_FLAG_PROVIDER=env, then set one variable per flag, named after the flag key uppercased with dashes replaced by underscores and prefixed with NANGO_FEATURE_FLAG_:
This serves true for the proxy-forward-all-response-headers flag on every account on the instance. Flags with no variable set keep their built-in default. Boolean flags accept true or false. A value that doesn’t match the flag’s type is ignored, and the flag keeps its default. The variables apply to the whole process, so there is no per-account targeting or gradual rollout. Set them on every service that evaluates the flag, and note that each service reads them at startup.

Two-factor authentication

Two-factor authentication is behind the mfa flag, which only the server evaluates. Set these on the server service to enable it:
Once the server restarts, users can turn it on from their profile settings by pairing an authenticator app and saving their backup codes. Nango then asks them for a code at login.

Server URL, callback URL, and custom domains

Add server environment variables for the instance URL and port in the .env file or directly in your hosting provider:
The resulting OAuth callback URL is <INSTANCE-URL>/oauth/callback.
You can customize the callback URL by updating the “Callback URL” field in the “Environment Settings” tab in the Nango admin.
If you are using a custom domain, update NANGO_SERVER_URL to match it.
If you front one Nango process with two ingresses (a public host for OAuth callbacks and webhooks, an internal host for the dashboard), set:
/ keeps dashboard API requests on whichever host served the page. Callback and webhook URLs still use NANGO_SERVER_URL. Set an absolute URL instead if the dashboard is hosted separately from the API.

Management MCP server

The Management MCP server runs as part of the main Nango server. To enable it, configure a dedicated hostname and route traffic for that hostname to the Nango server:
The hostname must be different from the hostname in NANGO_SERVER_URL. Nango uses the request hostname to distinguish Management MCP traffic from the public API. Restart the Nango server after setting the environment variable; the Management MCP endpoint is then available at https://mcp.example.com/mcp.

Connect UI

Nango Connect is available for self-hosted deployments in the main Docker image.
Nango Connect is available by default at http://localhost:3009.
If you are using a custom domain, update NANGO_PUBLIC_CONNECT_URL to match it.

Hosting under a base path

Connect UI works under any base path, for example behind a reverse proxy that routes services by path. Set NANGO_PUBLIC_CONNECT_URL to the full URL including the path:
Nango uses this URL when generating links to Connect UI and in the dashboard’s security headers, so it must match what end users load in the browser. Your reverse proxy must strip the base path prefix before forwarding to Connect UI: a request for /nango/connect/assets/app.js must reach Connect UI as /assets/app.js. Connect UI is a single-page app: the server must respond with index.html for any path that isn’t a built asset, including the base path without a trailing slash. Nango’s static file server handles this out of the box; if you serve the built dist from your own static host, enable its SPA fallback. See Auth for the end-user connection flow.

Persistent storage

If you deploy with Docker Compose, the bundled database uses local container storage. This is not appropriate for production. Connect Nango to an external Postgres database by setting the database environment variables:
You can also use a database URL:
Special characters in NANGO_DATABASE_URL must be URL encoded.
Nango is incompatible with connection poolers using pool_mode=transaction. Use a direct database connection or configure the pooler to use a different mode.
Records saved by sync functions can be persisted in a dedicated database. To use a dedicated records database, set RECORDS_DATABASE_URL:
Special characters in RECORDS_DATABASE_URL must be URL encoded. If it is not specified, records are stored in the main database.
Deploying with Render or Heroku automatically generates a persistent database connected to your Nango instance.

External Redis

The bundled Redis is fine for local use but not for production. Connect Nango to an external Redis (or Valkey) with either a full URL or discrete variables:
Use the rediss:// scheme (or discrete variables, which default to TLS) to enable in-transit encryption.

IAM / short-lived token authentication

Managed Redis with IAM authentication (for example GCP Memorystore for Valkey) uses a short-lived token as the password and requires the token to be refreshed before it expires. Instead of a static NANGO_REDIS_AUTH, point Nango at a file that an external process (such as a sidecar) keeps up to date:
Nango reads the token file on every connection and reconnection, so a rotated token is always picked up without a restart. This is cloud-agnostic: anything that writes the current token to the file works. The writer must update the file atomically — write a temporary file and rename() it into place — so a reconnect never reads a half-written token and fails authentication. When NANGO_REDIS_AUTH_TOKEN_FILE is set, do not embed credentials in NANGO_REDIS_URL. The runner boundary has the same set of variables prefixed with NANGO_CUSTOMER_REDIS_ (for example NANGO_CUSTOMER_REDIS_AUTH_TOKEN_FILE); it falls back to the system Redis when unset.

Securing your instance

Proxy base URL override hardening

The proxy can send authenticated requests to external APIs. Some proxy calls accept a base URL override (HTTP header Base-Url-Override, SDK baseUrlOverride, or an integration custom.baseUrl) to target a host that differs from the provider’s default API base URL. Because the proxy makes outbound HTTP requests from your Nango server (and from the runner for sync and action scripts), a caller with permission to use the proxy could use an override to reach hosts that were not meant to be exposed—such as cloud metadata services or localhost on the host making the request. This is a classic SSRF risk. By default, Nango keeps base URL override enabled and blocks override targets and redirect hops whose hostnames match a built-in denylist (cloud metadata and loopback addresses). Configure these environment variables and restart the server and runners after changes:
Operator guidance:
  • Production: keep the default denylist. Add environment-specific hosts if your deployment exposes additional internal endpoints.
  • Legitimate localhost overrides (dev only): set NANGO_PROXY_BASE_URL_OVERRIDE_DENYLIST='[]' to restore fail-open behavior.
  • No overrides at all: set NANGO_PROXY_BASE_URL_OVERRIDE_ENABLED=false.
Denylist matching is hostname-based and applies to redirect hops as well as the initial override target.

Outbound URL policy (DNS rebinding, private IPs, redirects)

Beyond the hostname denylist, Nango routes every outbound connection on the proxy, customer webhook delivery, and uncontrolledFetch paths through DNS-pinning agents that re-validate the resolved IP address — closing DNS-rebinding and redirect-to-internal-address SSRF holes. The behavior is controlled by NANGO_OUTBOUND_URL_POLICY, a JSON object (applied on top of the denylist). It propagates automatically to runners. The mode field selects how hostnames are filtered:
  • denylist (default): every destination is reachable except hostnames on the denylist (plus the IP-based protections below). This is the out-of-the-box mode, since the denylist always carries the secure defaults.
  • allowlist: only hostnames in allowlist are reachable (a leading . matches subdomains); everything else is rejected. The denylist and the IP-based protections still apply on top, so allowlist is strictly more restrictive — a listed hostname that resolves to a blocked IP is still rejected.
  • permissive: no hostname-based filtering (the IP-based protections below still apply). You only reach this mode deliberately — either by emptying the server denylist with no explicit mode (see below), or by setting mode: "permissive".
The IP-based protections apply in every mode, including permissive. Loopback (127.0.0.0/8, ::1) and unspecified addresses are always blocked; private/RFC1918/CGNAT addresses (blockPrivateIps) and link-local addresses — including the cloud-metadata IP 169.254.169.254 (blockLinkLocal) — are blocked by default.The denylist is never empty by default — it is always seeded with the secure defaults (localhost, metadata.google.internal, 169.254.169.254, …). It only becomes empty if you explicitly opt out: either NANGO_PROXY_BASE_URL_OVERRIDE_DENYLIST='[]' (server only, which then selects permissive) or mode: "permissive". Even then, only hostname string matches such as localhost are dropped — literal or resolved internal IPs stay blocked unless you also set blockPrivateIps/blockLinkLocal to false. Runners re-apply the secure denylist defaults even when the server has emptied its denylist; note an explicit mode: "permissive" empties the denylist everywhere, runners included.
Each resolved address (including on every redirect hop) is validated; in allowlist mode, only listed hostnames are reachable regardless of IP. The same DNS-pinning protection also covers OAuth/token flows (token exchange, refresh, AWS STS, and JWT-bearer token endpoints). These use a separate overlay, NANGO_OUTBOUND_URL_POLICY_OAUTH, applied on top of NANGO_OUTBOUND_URL_POLICY but with the same JSON shape. The only difference is the default: blockPrivateIps is false for OAuth so self-hosted integrations whose token endpoints live on a private network keep working. Loopback and unspecified addresses stay blocked regardless. Link-local/metadata addresses (including the cloud-metadata IP 169.254.169.254) stay blocked by default through blockLinkLocal, but that check is disabled if you set blockLinkLocal:false. Lock OAuth down to public hosts only by setting blockPrivateIps:

Securing the dashboard

By default, the dashboard of your Nango instance is open to anyone who can access your instance URL. You can secure it with Basic Auth by setting the following environment variables and restarting the server:

Internal mTLS

If you terminate mutual TLS between Nango services at a load balancer or service mesh, Nango can present a client certificate on its service-to-service calls (server to orchestrator, jobs to orchestrator, jobs to runner, runner to jobs, runner to persist, runner to server). Nango does not terminate TLS itself. Enforcement stays with your load balancer; these variables only control the certificate Nango sends as a client. Provide each asset inline, as raw PEM or base64-encoded PEM:
Or point at mounted files, which is usually easier with Kubernetes secrets:
Operator guidance:
  • Set the variables on every service. Each one is both a client and a server in this topology.
  • Runners started at runtime by the jobs service inherit the configuration automatically, as resolved PEM, regardless of which form you used on jobs itself. On Kubernetes the assets go into a per-runner Secret named <runner>-internal-tls, created and deleted alongside the runner’s deployment, so the pod references the key instead of carrying it in its spec. This needs secrets permissions in the jobs role, which the Helm chart grants by default.
  • Point the internal service URLs at your TLS listeners: ORCHESTRATOR_SERVICE_URL, JOBS_SERVICE_URL, PERSIST_SERVICE_URL, SERVER_SERVICE_URL, PROVIDERS_URL, and RUNNER_SERVICE_URL all need https:// values. Set NANGO_RUNNER_URL_SCHEME=https so runner URLs generated at runtime match.
  • Setting a cert without a key (or the reverse), setting both the inline and _FILE form of the same asset, pointing _FILE at an unreadable path, or supplying a wrong passphrase or a mismatched cert/key pair all fail at startup rather than silently falling back to plain TLS.
  • NANGO_INTERNAL_TLS_KEY_PASSPHRASE is used exactly as given, including any leading or trailing whitespace, since that whitespace may be part of the passphrase. Surrounding whitespace is stripped from the other variables, where it is never significant.
  • Prefer ECDSA P-256 over RSA-2048. The per-handshake signature is roughly an order of magnitude cheaper, which matters on the jobs-to-runner path.
  • Certificates are read once at startup, including _FILE paths. Rotation requires a restart.
NANGO_INTERNAL_TLS_CA replaces the default root store for internal calls. One of those calls fetches PROVIDERS_URL—if that points at an endpoint with a publicly issued certificate, leave the CA unset and use NODE_EXTRA_CA_CERTS instead, which adds to the default roots rather than replacing them.

CLI access through public mTLS

Internal mTLS only covers service-to-service calls. If the load balancer in front of the public API also requires a client certificate, the Nango CLI needs its own cert or nango deploy, dryrun, and pull will fail. Set these in the nango-integrations/.env file (or the environment that runs the CLI):
A PEM that contains both the certificate and private key is enough. Use a separate key or CA when the files are split:
NANGO_CLI_TLS_CA is only needed when the public API uses a private CA. Set NANGO_CLI_TLS_KEY_PASSPHRASE if the private key is encrypted. These variables are independent of NANGO_INTERNAL_TLS_*.

Internal service auth

Orchestrator, jobs, and runner HTTP APIs accept an Authorization: Bearer credential except GET /health, which stays open for probes. Enforcement is off until you set NANGO_INTERNAL_AUTH_REQUIRED=true. Shipping the image with no new variables is a no-op. There are three credential kinds:
  • Control plane (server, jobs, orchestrator): a static shared secret. Used for server and jobs calling orchestrator.
  • Task JWT: jobs mints an HMAC token at invoke time (iss: nango-internal, aud: jobs, task_id) and passes it in the runner start call body. The runner presents it on putTask/heartbeat. The signing key never leaves jobs. A stolen task token can at most forge that task. The default lifetime is 25 hours (orchestrator started-to-completed is one day, plus one hour).
  • Runner dispatch JWT: jobs mints an EdDSA token (aud: runner, task_id or node_id) and sends it as Authorization: Bearer on start, abort, and notifyWhenIdle. The Ed25519 private key is derived from NANGO_INTERNAL_AUTH_SIGNING_KEY and never leaves jobs. Jobs injects only the matching public key onto the runner at node start, so a runner process cannot mint dispatch tokens. A start call without a valid jobs identity is rejected when REQUIRED=true.

Custom websockets path

The Nango server serves websockets from / by default for use by @nangohq/frontend during the login flow. To isolate websockets from the dashboard, set NANGO_SERVER_WEBSOCKETS_PATH:
If you set a custom path, configure websocketsPath when initializing the Nango object in the @nangohq/frontend SDK:
Connect UI discovers the custom path on its own (from the connect session), so websocketsPath only needs to be configured for direct nango.auth() calls. If Nango is served behind a reverse proxy under a sub-path, direct nango.auth() needs the full public path in websocketsPath (e.g. /<API-BASE-PATH></YOUR-WEBSOCKETS-PATH>) because the SDK resolves it from the origin, while Connect UI composes the public path automatically from the apiURL base path and NANGO_SERVER_WEBSOCKETS_PATH.

Telemetry

Self-hosted instances do not automatically send telemetry back to Nango. Operational metrics and logs stay within your own infrastructure and are only exported if you configure the OpenTelemetry Export add-on.

Logs

Nango stores execution logs and powers the logs UI with either Elasticsearch or OpenSearch. To keep lightweight deployments lighter, this stack is optional. To enable logs:
  • Host an Elasticsearch or OpenSearch cluster.
  • Set NANGO_LOGS_ENABLED=true.
  • Configure the relevant NANGO_LOGS_ES_* environment variables (these apply to both providers).
Nango uses Elasticsearch by default. To use OpenSearch instead, set:
Elasticsearch hosting options include: If NANGO_LOGS_ENABLED is false, logs are sent to stdout and can be viewed in your host logs.

FAQ

What support do we get?

Support per your contract’s SLA, plus the managed image releases and Helm chart maintained by Nango. Nango doesn’t have visibility into your instance, so support relies on what you share with us — logs, dashboard state, error messages.
You do. We publish managed images on a two-month cadence plus hotfixes, and notify your Slack channel and the managed-image-releases repo — pulling and deploying them is on your team.
AWS, GCP, Azure, and on-prem Kubernetes — anywhere you can run the Helm chart.
Yes — the free self-hosting option (see the overview) is Auth and Proxy only. Moving to Enterprise Self-Managed unlocks the rest of the feature set; talk to us when you’re ready.
Not out of the box — the default configuration scales far without it, and we can guide you on setting up autoscaling when you need it.
None. Self-hosted instances send nothing back to Nango automatically. If you need our help debugging something, you share what’s relevant with us directly.