# Configuration Reference for API7 Gateway Data Plane

The API7 Gateway Data Plane (DP) handles all incoming traffic and applies policies defined by the Control Plane. This page provides a reference for the Data Plane configuration.

## Overview[​](#overview "Direct link to Overview")

The Data Plane configuration is typically managed via a `config.yaml` file, which overrides the default settings in `config-default.yaml`.

## Core Configuration[​](#core-configuration "Direct link to Core Configuration")

Configure the core worker processes and file limits.

```
nginx_config:

  worker_processes: auto # Automatically set to number of CPU cores

  worker_rlimit_nofile: 20480 # Max number of open files for each worker process
```

## Listening Ports[​](#listening-ports "Direct link to Listening Ports")

Configure listeners for plaintext HTTP and HTTPS traffic.

```
apisix:

  node_listen: # Always plaintext, regardless of the port number.

    - port: 9080 # Default HTTP port

  ssl:

    enable: true # Enable HTTPS listeners.

    listen: # HTTPS ports belong under ssl.listen.

      - port: 9443 # Default HTTPS port

        enable_http2: true
```

HTTP/2 is a gateway-wide proxy setting. Enabling it on any HTTP or HTTPS listener enables it on every proxy port in the process. See [Disable HTTP/2 on Gateway Listeners](https://docs.api7.ai/api7-gateway/how-to-guides/ops/configure-http2-listeners.md) to change and verify it safely.

## Proxy Cache Configuration[​](#proxy-cache-configuration "Direct link to Proxy Cache Configuration")

Enable and configure caching to improve performance and reduce upstream load.

```
apisix:

  proxy_cache:

    cache_ttl: 10s

    zones:

      - name: disk_cache_one

        memory_size: 50m

        disk_size: 1g

        disk_path: "/tmp/disk_cache_one"

        cache_levels: "1:2"
```

## Router Mode[​](#router-mode "Direct link to Router Mode")

Specify the router mode for matching incoming requests to routes.

```
apisix:

  router:

    http: radixtree_uri # Default router mode
```

## TLS Settings[​](#tls-settings "Direct link to TLS Settings")

Configure TLS behavior for incoming HTTPS requests.

```
apisix:

  ssl:

    ssl_protocols: "TLSv1.2 TLSv1.3"

    ssl_ciphers: "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256"
```

## Status API Endpoint[​](#status-api-endpoint "Direct link to Status API Endpoint")

Add the `status` block to expose the gateway's liveness and readiness endpoints. The presence of the block enables the listener. The runtime configuration has no `enabled` field.

```
apisix:

  status:

    ip: 127.0.0.1

    port: 7085
```

The `/status` endpoint confirms that the process is running. The `/status/ready` endpoint also checks worker synchronization and DP Manager availability. Set `ip` to an address reachable from the probe if it runs outside the gateway's network namespace. For metrics, see [Monitor Gateway Metrics](https://docs.api7.ai/api7-gateway/observability/metrics.md).

## Custom Plugin Paths[​](#custom-plugin-paths "Direct link to Custom Plugin Paths")

Load custom-developed plugins into API7 Gateway.

```
apisix:

  extra_lua_path: "/usr/local/apisix/plugins/?.lua"
```

## Environment Variables[​](#environment-variables "Direct link to Environment Variables")

Use environment variables to dynamically configure Data Plane nodes.

```
# In config.yaml, use ${{VAR_NAME}}. Nginx already uses ${VAR_NAME}.

apisix:

  node_listen:

    - port: ${{GATEWAY_PORT}}
```

## Next Steps[​](#next-steps "Direct link to Next Steps")

* [Scaling Data Plane](https://docs.api7.ai/api7-gateway/configure-and-manage/scale-data-plane.md)
* [High Availability for Data Plane](https://docs.api7.ai/api7-gateway/configure-and-manage/high-availability-data-plane.md)
* [Performance Benchmark](https://docs.api7.ai/api7-gateway/configure-and-manage/performance-benchmark.md)
