/major-ai-skills:nginx-hardeningfrom major-ai-skills
Review Nginx reverse-proxy security settings, TLS, headers, request limits, and upstream boundaries. Use for focused hardening work.
Ships in major-ai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill focuses on edge hardening for NGINX as a reverse proxy or ingress TLS terminator - not general static-site or PHP app cookbook material (see related nginx skill for broader NGINX usage). Hardening means enforcing modern TLS, security headers, rate limits, body size caps, careful proxy_* buffering, and denying abusive request patterns before they reach upstreams.
Internet clients
|
v
NGINX edge (TLS + rate limit + headers)
|
v
Upstream (app / API gateway / k8s service)
TLSv1.2/TLSv1.3 only).client_max_body_size and timeouts; never leave unlimited upload defaults on public APIs.limit_req + limit_conn on login and expensive routes.Host / X-Forwarded-* deliberately.nginx -t before reload; use graceful reload.# /etc/nginx/conf.d/api.conf
limit_req_zone $binary_remote_addr zone=api_per_ip:10m rate=10r/s;
limit_conn_zone $binary_remote_addr zone=addr:10m;
upstream api_upstream {
server 10.0.1.10:8080 max_fails=3 fail_timeout=30s;
keepalive 32;
}
server {
listen 443 ssl http2;
server_name api.example.com;
ssl_certificate /etc/ssl/certs/api.fullchain.pem;
ssl_certificate_key /etc/ssl/private/api.key;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_prefer_server_ciphers off;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "no-referrer" always;
add_header Content-Security-Policy "default-src 'none'; frame-ancestors 'none'" always;
client_max_body_size 1m;
client_body_timeout 10s;
client_header_timeout 10s;
location /login {
limit_req zone=api_per_ip burst=20 nodelay;
limit_conn addr 10;
proxy_pass http://api_upstream;
include proxy_params_hardened.conf;
}
location / {
limit_req zone=api_per_ip burst=40 nodelay;
proxy_pass http://api_upstream;
include proxy_params_hardened.conf;
}
}
# /etc/nginx/proxy_params_hardened.conf
proxy_http_version 1.1;
proxy_set_header Connection "";
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;
proxy_hide_header X-Powered-By;
proxy_read_timeout 30s;
proxy_connect_timeout 5s;
proxy_send_timeout 30s;
proxy_buffering on;
nginx -t
nginx -s reload
curl -I https://api.example.com/health
openssl s_client -connect api.example.com:443 -servername api.example.com </dev/null 2>/dev/null | openssl x509 -noout -dates
| Control | Target |
|---|---|
| TLS | 1.2+ only; valid chain; HSTS |
| Methods | Deny unexpected verbs if API is POST-only |
| Size | Small client_max_body_size per route class |
| Rate | Separate zones for auth vs read APIs |
| Upstream | Fixed servers or resolved private DNS; no open proxy |
:80 to :443 without serving sensitive content on cleartext.$request_id / trace headers for abuse forensics; avoid logging secrets.nginx - general NGINX configuration and serving patternslets-encrypt - certificate issuance/renewal for the edgecloudflare-dns - DNS + optional CDN in front of originopentelemetry - propagate trace headers through proxyWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alivirgo/major-ai-skills --plugin major-ai-skills412 skills in this plugin
/3d-slicerAutomate 3D Slicer research workflows with MRML, VTK/ITK, DICOM data, and Segment Editor. Use for software workflows, not clinical interpretation./abbreviated-git-statusInspect Git branch, staging, and working-tree changes with short or porcelain status output when a compact repository check is needed./ableton-liveAutomate Ableton Live sessions with Python MIDI Remote Scripts, Max for Live, AbletonOSC, and Link synchronization./act-as-a-personal-tutorExplain a subject step by step, assess prior knowledge, and use short exercises to check understanding before advancing.Other plugins' skills for the same job