Nginx Config Generator
中级ops最低上下文:8K
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.
使用场景
- 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
示例提示词
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.
推荐模型
兼容工具
claude-codecursorkiroany
模态
输入: text, code
→输出: text, code
相关 Skills
作者
OpenModels Community