nginx-config-creator
Installation
SKILL.md
Nginx Config Creator (Enterprise Grade)
This skill automates the creation of Nginx/OpenResty reverse proxy configurations. It is designed for both ease of use and safety, incorporating environment awareness and a critical safety-check mechanism.
Features
- Environment Awareness: Simplifies commands by reading configuration from environment variables.
- Safety Check: Includes a '熔断' (fuse) mechanism. It tests the configuration before applying it and automatically rolls back if the test fails, preventing web server downtime.
Pre-requisites (Recommended)
For maximum convenience, it is recommended to set the following environment variables on the host system:
NGINX_CONFIG_PATH: The absolute path to the Nginxconf.ddirectory.NGINX_CONTAINER_NAME: The name of the running Nginx/OpenResty Docker container.
If these are not set, they must be provided as command-line arguments.