Environment Variables
The official naati Docker images honor both NAATI_* and legacy NGINX_* environment variable names so existing docker-compose.yml and Kubernetes manifests work without edits.
Template Rendering (20-envsubst-on-templates.sh)
| Variable | Compat Alias | Default | Description |
|---|---|---|---|
NAATI_ENVSUBST_TEMPLATE_DIR | NGINX_ENVSUBST_TEMPLATE_DIR | /etc/nginx/templates | Directory scanned for *.template files on container startup |
NAATI_ENVSUBST_TEMPLATE_SUFFIX | NGINX_ENVSUBST_TEMPLATE_SUFFIX | .template | Filename suffix stripped when writing rendered configs |
NAATI_ENVSUBST_OUTPUT_DIR | NGINX_ENVSUBST_OUTPUT_DIR | /etc/nginx/conf.d | Output directory for rendered configuration files |
Only environment variables currently defined in the container are substituted — NGINX variables such as $host, $uri, and $remote_addr are left untouched.
Worker Auto-Tuning (30-tune-worker-processes.sh)
| Variable | Compat Alias | Default | Description |
|---|---|---|---|
NAATI_ENTRYPOINT_WORKER_PROCESSES_AUTOTUNE | NGINX_ENTRYPOINT_WORKER_PROCESSES_AUTOTUNE | (unset) | Set to 1 to replace worker_processes auto; with the container’s cgroup v1/v2 CPU quota (clamped between 1 and host nproc) |