Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Forge Nginx Config?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ansh44233-forge-nginx-config)
---
name: forge-nginx-config
description: Configure nginx as a reverse proxy with TLS, timeouts, headers, buffering and safe defaults
---
<!-- Generated from catalog/skills/nginx-config/SKILL.md by scripts/build-plugin.ts. Edit the catalog, not this file. -->
# nginx configuration
Small config mistakes in nginx become outages or vulnerabilities.
## Proxying
- Set `proxy_set_header Host`, `X-Forwarded-For`, `X-Forwarded-Proto`; upstream keepalive.
- Explicit timeouts (`proxy_read_timeout`) and `client_max_body_size` matching the app.
- WebSockets need `Upgrade`/`Connection` headers.
## Security
- TLS 1.2+ with modern ciphers, HSTS, OCSP stapling; redirect HTTP to HTTPS.
- `server_tokens off`; deny access to dotfiles; no `alias` path traversal (`location /x { alias /y/; }` needs matching slashes).
## Performance
- gzip/brotli for text, long cache headers for hashed static assets.
## Verify
`nginx -t` passes, and curl checks confirm the redirect, headers and a large-upload limit behave as intended.