Back to browse
nginx-config
officialplatinum (7/8)Clean scan
Install
mayros skill install nginx-config
mayros skill install [email protected]
Reverse proxy, SSL/TLS, load balancing, security headers, rate limiting
README
@apilium/nginx-config
Nginx configuration skill for Mayros -- reverse proxy, SSL/TLS, load balancing, rate limiting, and security hardening.
Installation
Copy this skill directory into your Mayros skills folder:
cp -r skills/nginx-config ~/.mayros/skills/nginx-config
Or install via the Mayros CLI:
mayros skill install @apilium/nginx-config
Prerequisites
Install nginx:
# macOS
brew install nginx
# Ubuntu/Debian
sudo apt update && sudo apt install nginx
Verify: nginx -v
Usage
Once configured, the agent can:
- Reverse Proxy: Route traffic to backend applications with proper headers
- SSL/TLS: Configure HTTPS with Let's Encrypt certificates and modern cipher suites
- Load Balancing: Distribute traffic across multiple backends (round-robin, least-conn, ip-hash)
- Rate Limiting: Protect APIs from abuse with configurable request rate zones
- Security Headers: Add X-Frame-Options, CSP, HSTS, and other protective headers
- Caching: Configure proxy caching with stale content fallback
- WebSocket: Proxy WebSocket connections with upgrade headers
- CORS: Handle cross-origin requests with preflight support
- Gzip: Enable compression for text-based responses
- Static Files: Serve static assets with long-term cache headers
Example prompts
"Set up nginx as a reverse proxy for my Node.js app on port 3000"
"Configure SSL with Let's Encrypt for api.example.com"
"Add rate limiting to my API endpoints"
"Set up load balancing across 3 backend servers"
"What security headers should I add to my nginx config?"
Semantic Predicates
| Predicate | Scope | Description |
|-----------|-------|-------------|
| nginx:config_generated | agent | Configs generated by the agent |
| nginx:security_issue | agent | Security issues detected in configs |
| nginx:config_context | namespace | Nginx context for enrichment |
License
MIT
Versions
Comments
Sign in to leave a comment.
Loading comments...