nginx
Deploy production-ready Nginx configurations for reverse proxies, TLS termination, and load balancing.
Free
nginx
Example session with this skill installed
I need a secure Nginx config for a Node.js app running on port 3000. It needs HTTPS, WebSockets on /ws, and should serve static files from /var/www/dist with a 1-year cache.
- Read your context and instructions
- Compiled the nginx
I have generated a hardened Nginx configuration for your Node.js application, including TLS settings, WebSocket proxying, and optimized static asset handling.
Hardened Nginx Configuration
# /etc/nginx/sites-available/node-app.conf
upstream node_backend {
server 127.0.0.1:3000;
keepalive 64;
}
server {
listen 80;
listen [::]:80;
server_name example.com;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
http2 on;
server_name example.com;
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
# Security Headers
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always;
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Content-Type-Options "nosniff" always;
# Static Assets
location /static/ {
alias /var/www/dist/;
expires 1y;
add_header Cache-Control "public, immutable";
access_log off;
}
# WebSocket Support
location /ws/ {
proxy_pass http://node_backend;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 3600s;
}
# Default Proxy
location / {
proxy_pass http://node_backend;
include /etc/nginx/proxy_params;
}
}
Next steps
- Run
nginx -tto verify the configuration syntax. - Link the file:
ln -s /etc/nginx/sites-available/node-app.conf /etc/nginx/sites-enabled/. - Reload the service with
systemctl reload nginx.
Connects securely to your tools. The creator never sees your data.
About this skill
The problem
Manually configuring Nginx is error-prone, leading to 502 Bad Gateway errors, insecure TLS settings, and degraded performance due to unoptimized buffers or logging. Developers often struggle with the "if is evil" directive and complex location matching priority.
What it does
- Generates production-ready virtual host configurations for Node.js, Python, Go, and Ruby applications.
- Configures secure HTTPS/TLS termination with modern ciphers, HSTS, and Let's Encrypt integration.
- Implements upstream load balancing with keepalive connections and health-conscious tuning.
- Sets up granular rate limiting zones and security headers like CSP and X-Frame-Options.
- Optimizes static file delivery using gzip compression, caching headers, and zero-copy sendfile settings.
Why this beats prompting it yourself
Generic LLM prompts often overlook critical production details like worker_rlimit_nofile constraints or binary_remote_addr memory efficiency. This skill applies hardened security defaults and prevents common anti-patterns that cause silent failures under high load.
Use cases
- Deploying a reverse proxy for a microservices architecture with persistent upstreams.
- Migrating an application from HTTP to hardened HTTPS with automated redirects.
- Setting up a high-performance SPA server with optimized caching and fallback routing.
- Debugging and resolving persistent 504 Gateway Timeout or 413 Request Entity Too Large errors.
Known limitations
Does not handle application-level logic or Kubernetes Ingress controllers. Requires existing SSL certificates for TLS features.
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
3 uses
Times used to date
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 2 months ago
- Free with an Agensi account
Permissions
What's inside
Frequently Asked Questions
New in APIs & Backend
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.