Skip to main content

On-Premises Configuration

AISIX on-premises deployments are configured through a Docker Compose .env file or Helm values, depending on how you install the control plane.

Use this reference with On-Premises Deployment when you need to review or customize the generated deployment configuration.

These settings configure the on-premises control plane package. They are separate from AISIX gateway runtime environment variables. For gateway runtime variables, see Environment Variables.

Docker Compose Environment Variables

The Docker Compose package reads environment variables from ./aisix-ee/.env. The quickstart and offline package generate this file on first start, then preserve it across later package refreshes.

Images and Release Version

VariablePurpose
AISIX_VERSIONRelease tag used by the control-plane images.
AISIX_API_IMAGEOptional image override for cp-api.
AISIX_DPM_IMAGEOptional image override for dp-manager.
AISIX_UI_IMAGEOptional image override for the dashboard.
AISIX_CLOUD_DP_IMAGEAISIX gateway image shown in generated managed-gateway install snippets.

Database

VariablePurpose
POSTGRES_USERPostgreSQL user for the bundled database.
POSTGRES_PASSWORDPostgreSQL password for the bundled database. Use a strong URL-safe value because it is embedded in a postgres:// URL.
POSTGRES_DBPostgreSQL database name.

Secrets

VariablePurpose
AISIX_CLOUD_MASTER_KEYBase64-encoded 32-byte AES key used for envelope encryption. The same value is also used by dp-manager.
AISIX_CLOUD_MASTER_KEY_IDIdentifier stored with encrypted rows so the control plane can identify the wrapping key.
BETTER_AUTH_SECRETSession-signing secret for dashboard authentication.

Do not change AISIX_CLOUD_MASTER_KEY on an existing deployment unless you are following a master-key rotation procedure. Changing it without preserving the previous key can make encrypted data unreadable.

Runtime URLs

VariablePurpose
AISIX_CLOUD_PUBLIC_BASE_URLBrowser-facing control-plane origin, such as https://aisix.example.com. Login validates the session issuer against this value.
AISIX_CLOUD_DPMGR_BASE_URLdp-manager mTLS endpoint that managed gateway hosts can reach.
AISIX_CLOUD_DASHBOARD_URLInternal dashboard URL used by cp-api. The Compose default points to the dashboard service.

Set AISIX_CLOUD_PUBLIC_BASE_URL and AISIX_CLOUD_DPMGR_BASE_URL before exposing the deployment outside the local host or container network.

Pricing Catalog

VariablePurpose
AISIX_CLOUD_PRICESYNC_URLOnline model-pricing catalog URL. The default points to models.dev.
AISIX_CLOUD_PRICESYNC_SNAPSHOT_PATHOffline pricing snapshot path. When set, cp-api seeds the catalog from the snapshot and does not contact models.dev.

The offline package sets AISIX_CLOUD_PRICESYNC_SNAPSHOT_PATH automatically so pricing works without outbound network access.

Dashboard and Ports

VariablePurpose
AISIX_DASHBOARD_LOCALEDashboard language for the deployment. Supported values are en and zh.
POSTGRES_HOST_PORTHost port binding for bundled PostgreSQL.
API_HOST_PORTHost port binding for cp-api and the dashboard reverse proxy.
DPM_HOST_PORTHost port binding for dp-manager.

Prefix a host port with 127.0.0.1: when the service should bind only to loopback.

Helm Values

The api7/aisix-cp chart uses Helm values instead of a Compose .env file. Add the API7 Helm repository before inspecting or installing the chart:

helm repo add api7 https://charts.api7.ai
helm repo update

To inspect every chart value, run:

helm show values api7/aisix-cp

The chart source and values are published in the api7/api7-helm-chart repository.

Images and Services

ValuePurpose
api.image.repository, api.image.tagcp-api image.
dpm.image.repository, dpm.image.tagdp-manager image.
ui.image.repository, ui.image.tagDashboard image.
api.service.type, api.service.portKubernetes Service settings for cp-api.
dpm.service.type, dpm.service.portKubernetes Service settings for dp-manager.
ui.service.type, ui.service.portKubernetes Service settings for the dashboard service behind cp-api.

Control Plane URLs

ValuePurpose
api.publicBaseURLBrowser-facing control-plane origin.
api.dpmgrBaseURLdp-manager mTLS endpoint that managed gateway hosts can reach.
api.dpImageAISIX gateway image shown in generated managed-gateway install snippets.

Secrets

ValuePurpose
secrets.masterKeyBase64-encoded 32-byte AES key used for envelope encryption.
secrets.masterKeyIDIdentifier stored with encrypted rows so the control plane can identify the wrapping key.
secrets.betterAuthSecretSession-signing secret for dashboard authentication.

Replace the chart's placeholder secrets before installing. The chart rejects placeholder secret values.

PostgreSQL

ValuePurpose
postgresql.builtinDeploy the bundled PostgreSQL chart when set to true.
postgresql.auth.passwordApplication password for the bundled PostgreSQL chart.
postgresql.auth.postgresPasswordPostgreSQL superuser password for the bundled PostgreSQL chart.
postgresql.auth.existingSecretExisting Kubernetes Secret for bundled PostgreSQL credentials.
externalDatabase.*Top-level values for an existing PostgreSQL database when postgresql.builtin=false.

Use URL-safe PostgreSQL passwords, such as values generated with openssl rand -hex 24, because the chart builds a postgres:// connection URL from the configured credentials.

Dashboard Locale

ValuePurpose
ui.defaultLocaleDashboard language for the deployment. Supported values are en and zh.
API7.ai Logo

The digital world is connected by APIs,
API7.ai exists to make APIs more efficient, reliable, and secure.

Sign up for API7 newsletter

Product

API7 Gateway

SOC2 Type IIISO 27001HIPAAGDPRRed Herring

Copyright © APISEVEN PTE. LTD 2019 – 2026. Apache, Apache APISIX, APISIX, and associated open source project names are trademarks of the Apache Software Foundation