nginx-config-creator
⚠Review·Scanned 2/19/2026
Creates an Nginx/OpenResty reverse-proxy config and reloads Nginx inside a Docker container. It writes ${CONFIG_PATH}/${SERVICE_NAME}.conf, uses environment variables NGINX_CONFIG_PATH and NGINX_CONTAINER_NAME, and invokes docker exec ... nginx -t / nginx -s reload.
from clawhub.ai·vcef7c22·8.9 KB·0 installs
Scanned from 0.1.1 at cef7c22 · Transparency log ↗
$ vett add clawhub.ai/xieyuanqing/nginx-config-creatorReview findings below
Nginx Config Creator Skill
This is an enterprise-grade skill for AI agents that automates the creation of Nginx/OpenResty reverse proxy configurations. It is designed for both ease of use and operational safety.
Features
- Environment Awareness: Simplifies commands by sourcing configuration from environment variables, falling back to command-line arguments.
- Safety Fuse Mechanism: The script performs a configuration test (
nginx -t) before applying any changes. If the test fails, it automatically deletes the newly created config file (rolls back), ensuring the web server's stability is never compromised. - Stateless & Parametric: Built for automation, receiving all necessary configuration via arguments or environment variables.
Prerequisites (Recommended)
For convenience, you can set the following environment variables on the host system. They can also be provided as command-line arguments.
export NGINX_CONFIG_PATH="/path/to/your/nginx/conf.d"
export NGINX_CONTAINER_NAME="your_nginx_container_name"
Usage
The core logic is handled by the scripts/create-and-reload.sh shell script.
Arguments
--service-name(Required): The short name for the service (e.g.,grafana).--domain(Required): The root domain name (e.g.,example.com).--port(Required): The local port the service is running on (e.g.,3000).--config-path(Optional): The absolute path to Nginx'sconf.ddirectory. Overrides theNGINX_CONFIG_PATHenvironment variable.--container-name(Optional): The name of the Nginx Docker container. Overrides theNGINX_CONTAINER_NAMEenvironment variable.
Example
Assuming environment variables are set, the command is very clean:
bash scripts/create-and-reload.sh \
--service-name "prometheus" \
--domain "example.com" \
--port "9090"
Included in this Skill
SKILL.md: The manifest file for the AI agent.scripts/create-and-reload.sh: The robust shell script that handles config creation, testing, and reloading.