nginx-config-creator
Creates a standard Nginx/OpenResty reverse proxy config file for a service and reloads the web server. Features safety checks and environment awareness. Takes service name, domain, and port as main arguments.
Why use this skill?
Automate Nginx and OpenResty configuration with built-in safety checks. Prevent downtime with automatic rollback, environment awareness, and seamless Docker integration.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/xieyuanqing/nginx-config-creatorWhat This Skill Does
The nginx-config-creator skill is a robust, enterprise-grade automation tool designed to streamline the deployment of reverse proxies for services running within your infrastructure. It automates the generation, validation, and implementation of Nginx or OpenResty configuration files. By handling the tedious boilerplate of server blocks and port mapping, it allows you to expose local services to the web securely and efficiently.
At its core, this skill is built for resilience. It features an automated safety check mechanism (the 'fuse') that executes nginx -t within your specified Docker container before applying any changes. If the configuration is syntactically invalid or prone to errors, the tool immediately halts, removes the temporary configuration file, and reports the error. This prevents costly downtime caused by typos or misconfigured ports.
Installation
To integrate this skill into your environment, run the following command within your terminal or OpenClaw interface:
clawhub install openclaw/skills/skills/xieyuanqing/nginx-config-creator
Ensure you have Docker installed and that your OpenClaw agent has the necessary permissions to execute commands on the host machine to modify configuration files.
Use Cases
This skill is perfect for:
- Rapid deployment of internal web dashboards (e.g., Grafana, Prometheus, or JupyterHub).
- Automating DevOps workflows where new services are provisioned programmatically.
- Reducing human error during repetitive Nginx configuration updates.
- Teams maintaining complex multi-service setups who need a standardized way to route traffic via Docker.
Example Prompts
- "Create a new nginx proxy for my grafana service on port 3000 using example.com as the domain name."
- "Add a new configuration for the analytics dashboard; the service is running on port 8080 and I need it to be accessible via sub-domain on my current nginx setup."
- "Set up an Nginx proxy for the app running on port 5000, using container name 'web-proxy' and path '/etc/nginx/conf.d' for the configuration files."
Tips & Limitations
- Environment Variables: For the best experience, export
NGINX_CONFIG_PATHandNGINX_CONTAINER_NAMEin your.bashrcor.zshrc. This prevents you from needing to type them every time. - Permissions: Ensure the user running the agent has write access to the target configuration directory, or the file generation step will fail.
- Limitations: This tool generates standard reverse proxy configs. If you have highly complex requirements, such as specific load balancing algorithms or intricate SSL/TLS termination logic, you may need to manually refine the generated files afterward.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-xieyuanqing-nginx-config-creator": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read, code-execution