- Home
- Skills
- DevOps & Cloud
- Nginx Load Balancer Configurator
Works with the AI Agents you already use
Nginx Load Balancer Configurator
Generate production-grade Nginx load balancer configs with SSL, rate limiting, and optimized upstream pools.
$15
Nginx Load Balancer Configurator
Example session with this skill installed
Generate an Nginx config for a load balancer with three backends (10.0.0.1-3) using least_conn, SSL termination, and rate limiting for 10 requests per second.
- Read your context and instructions
- Compiled the nginx load balancer
I have generated a production-ready Nginx configuration featuring a least-connection upstream pool, hardened SSL settings, and request rate limiting. ## nginx.conf deliverable ```nginx # Optimized Nginx Load Balancer Configuration worker_processes auto; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; # Rate Limiting Zone: 10 requests per second limit_req_zone $binary_remote_addr zone=mylimit:10m rate=10r/s; upstream backend_servers { least_conn; server 10.0.0.1:8080 max_fails=3 fail_timeout=30s; server 10.0.0.2:8080 max_fails=3 fail_timeout=30s; server 10.0.0.3:8080 max_fails=3 fail_timeout=30s; } server { listen 443 ssl http2; server_name example.com; # SSL Configuration - Mozilla Intermediate ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem; ssl_session_timeout 1d; ssl_session_cache shared:SSL:50m; ssl_protocols TLSv1.2 TLSv1.3; ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384; # HSTS add_header Strict-Transport-Security "max-age=63072000" always; location / { limit_req zone=mylimit burst=20 nodelay; proxy_pass http://backend_servers; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } } } ``` **Next steps** 1. Replace placeholder SSL certificate paths with your actual `.pem` locations. 2. Test the configuration syntax locally using `nginx -t -c ./nginx.conf`. 3. Deploy the file to your production `/etc/nginx/` directory and reload the service.
Connects securely to your tools. The creator never sees your data.
About this skill
Misconfigured load balancers lead to dropped packets, security vulnerabilities, and uneven server strain. This skill provides production-ready Nginx configurations tailored for high-performance traffic management and security. ## What it does - **Upstream Management** defines server pools with round-robin, least-connection, or IP-hash algorithms. - **SSL/TLS Termination** implements Mozilla intermediate cipher suites, HSTS, and OCSP stapling. - **Traffic Shaping** configures request and connection rate limiting to mitigate flood attacks. - **Performance Tuning** optimizes worker processes, buffer sizes, and compression settings. - **Header Forwarding** ensures correct proxy header handling for downstream application logic. ## How it works 1. **Define Architecture** by specifying backend server nodes and the preferred balancing method. 2. **Apply Security Layers** including SSL certificate paths and rate-limiting thresholds. 3. **Generate Configuration** to produce a complete, valid `nginx.conf` file within your project workspace. 4. **Validate Output** against best practices for proxy headers and gzip/brotli compression. ## Frameworks & tools This skill generates standard Nginx configuration syntax compatible with Nginx Open Source and Nginx Plus. It follows modern security standards for TLS and supports proxying to any HTTP-based backend. ## Why this beats prompting it yourself Generic prompts often skip critical performance headers or use outdated, insecure SSL ciphers. This skill enforces strict security guardrails and uses deterministic workflows to ensure upstream health checks and rate limits are correctly declared. ## Use cases - Setting up a reverse proxy for a microservices architecture. - Migrating from simple round-robin to session-persistent IP-hash balancing. - Hardening an entry point against DDoS using `limit_req` zones. - Configuring edge-case optimizations like Brotli compression and OCSP stapling. ## Known limitations This skill only writes configuration files to the local workspace. It does not possess permissions to reload the Nginx service, install system packages, or access root-level `/etc/nginx` directories directly.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for DevOps & Cloud.
Operates only within the local workspace. No system-level access to reload services or modify /etc/nginx. Does not install Nginx binaries.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 4 days ago
- Software
- Zero global installationorelevated privileges required.
File System Read/Write (strictly scoped to current project workspace `./`).
Permissions
Target Use Cases: - Generate an Nginx reverse proxy configuration with load balancing. - Configure SSL termination and rate limiting in Nginx. - Write a production nginx.conf for high traffic microservices.