Startup Configuration
Startup configuration defines the process-level settings AISIX needs before it can serve traffic. It controls how the gateway receives dynamic resources, which listeners it binds, which shared backends it uses, and how it connects to AISIX Cloud.
Dynamic resources are configured separately. Models, provider keys, caller API keys, guardrails, cache policies, rate-limit policies, and observability exporters come from a resources file, a configuration store, or the AISIX Cloud control plane.
Understand the Configuration Sources
AISIX uses different configuration sources for different responsibilities:
| Configuration | Applies To | Source |
|---|---|---|
| Process settings | Every gateway | Startup configuration file with optional environment-variable overrides |
| Dynamic gateway resources | Open-source AISIX gateway | Declarative resources.yaml file or etcd |
| Dynamic gateway resources | Gateway connected to AISIX Cloud | AISIX Cloud control plane |
| On-Premises control-plane settings | On-Premises AISIX Cloud deployment | Docker Compose environment variables or Helm values |
This page covers gateway startup configuration. For On-Premises control-plane settings, see the On-Premises Configuration Reference.
Choose the Dynamic-Resource Source
A gateway reads dynamic resources from one source. Choose that source in startup configuration before configuring listeners and runtime dependencies.
Resources File
Use a declarative resources file for the normal open-source gateway workflow:
resources_file: /etc/aisix/resources.yaml
proxy:
addr: "0.0.0.0:3000"
admin:
enabled: false
observability:
metrics:
prometheus:
enabled: true
path: "/metrics"
addr: "0.0.0.0:9090"
The gateway loads the file at startup and reloads it on SIGHUP. Validate resource changes before applying them:
aisix validate --resources /etc/aisix/resources.yaml
See the Open-Source AISIX Gateway Quickstart for the complete workflow and the Resources File Reference for supported resource kinds.
Configuration Store
Use etcd when an existing automation system manages open-source AISIX gateway resources through a shared store:
etcd:
endpoints:
- "http://127.0.0.1:2379"
prefix: "/aisix"
dial_timeout_ms: 5000
request_timeout_ms: 5000
Keep the prefix stable across gateway instances that should receive the same resources. Use env_id only when the configuration system writes environment-scoped keys. Configure etcd.tls when the store requires mTLS.
Do not configure both resources_file and etcd; AISIX rejects that combination at startup.