Nginx Config Generator

intermediateopsMin 8K context

Produces production-ready nginx configuration for common scenarios: reverse proxy, load balancing, TLS termination, static file serving, HTTP/2, gzip/brotli, caching, rate limiting, and security headers. Explains each directive, warns about risky defaults, and includes a validation step so the config can be tested before reload.

Use Cases

  • Generating a reverse-proxy config with TLS and HTTP/2
  • Setting up load balancing across multiple upstreams
  • Adding rate limiting and security headers to an existing config
  • Configuring caching and gzip/brotli for a static site

Example Prompt

Generate an nginx config for these requirements:
- Reverse proxy to an app on 127.0.0.1:3000
- TLS termination (certs at /etc/letsencrypt/live/example.com/)
- Redirect HTTP to HTTPS, enable HTTP/2
- Gzip on, sane security headers, and a 10 req/s rate limit per IP with a small burst

Annotate each block with a short comment, flag any directive that could break under load,
and include the exact command to test the config before reloading.

Recommended Models

Compatible Tools

claude-codecursorkiroany

Modalities

Input: text, code
Output: text, code

Related Skills

Author

OpenModels Community

@openmodelsrun