Skip to content
Environment Variables

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)

VariableCompat AliasDefaultDescription
NAATI_ENVSUBST_TEMPLATE_DIRNGINX_ENVSUBST_TEMPLATE_DIR/etc/nginx/templatesDirectory scanned for *.template files on container startup
NAATI_ENVSUBST_TEMPLATE_SUFFIXNGINX_ENVSUBST_TEMPLATE_SUFFIX.templateFilename suffix stripped when writing rendered configs
NAATI_ENVSUBST_OUTPUT_DIRNGINX_ENVSUBST_OUTPUT_DIR/etc/nginx/conf.dOutput 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)

VariableCompat AliasDefaultDescription
NAATI_ENTRYPOINT_WORKER_PROCESSES_AUTOTUNENGINX_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)