DevOps i chmura · Budowanie i kod
reverse-proxy
/reverse-proxy
Konfiguruje i diagnozuje odwrotne proxy Nginx, Traefik lub HAProxy: routing, terminację SSL i błędy w konfiguracji.
- Autor
- tspry ↗
- Repozytorium
- superpowers-devops ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 20.10.2026
Ocena i bezpieczeństwo
100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 2
Przestarzałość
Brak sygnałów. Repozytorium zmienione 20.10.2026, bez odwołań do wycofanych modeli i API.
Licencja
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Konfiguruje i diagnozuje odwrotne proxy Nginx, Traefik lub HAProxy: routing, terminację SSL i błędy w konfiguracji.
Oryginalny opis (EN)
Use when working with Nginx, Traefik, or HAProxy — setup, config debugging, SSL termination, routing
Jak działa
- Mode Detection
- Nginx
- Traefik
- HAProxy
- Tooling Templates
Sekcje z nagłówków SKILL.md, w oryginale · 88 linii, 381 słów
Podgląd SKILL.md
---
name: reverse-proxy
description: Use when working with Nginx, Traefik, or HAProxy — setup, config debugging, SSL termination, routing
---
# Reverse Proxy
## Mode Detection
- **Repo mode** — inspect existing proxy configs; check `tooling/README.md` before scaffolding. Proxy templates are not bundled.
- **Chat mode** — user pastes config or error. Diagnose and provide corrected config.
## Nginx
### Test and reload config (never restart)
```bash
nginx -t # test config syntax
nginx -s reload # reload without downtime
systemctl reload nginx # alternative
```
### Basic reverse proxy config
```nginx
server {
listen 80;
server_name example.com;
location / {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
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_cache_bypass $http_upgrade;
}
}
```
### SSL with Let's Encrypt
```bash
certbot --nginx -d example.com
certbot renew --dry-run # test auto-renewal
```
### Debugging common errors
| Error | First check |
|---|---|
| 502 Bad Gateway | Is the upstream running? `curl localhost:3000` |
| 504 Gateway Timeout | Compare timestamps/traces across DNS, connect, TLS, queue, application, dependency, and response-read phases |
| 413 Request Too Large | Increase `client_max_body_size` |
| SSL handshake error | Check cert validity, check `ssl_protocols` |
| `connect() failed (111: Connection refused)` | Wrong upstream port or service not running |
A larger timeout is not a default fix. Establish the end-to-end latency budget, identify the phase that exhausted it, and correct that cause. Change a proxy timeout only when the intended request duration exceeds the current budget; bound the change, consider concurrency/resource impact, verify latency and error rates, and retain the previous value for rollback.
### Useful debug commands
```bash
tail -f /var/log/nginx/error.log
tail -f /var/log/nginx/access.log
nginx -T # dump full merged config
```
## Traefik
### Dynamic config check
```bash
# Traefik dashboard (if enabled): http://localhost:8080
# Check router/service status in dashboard
```
### Common issues
| Issue | Fix |
|---|---|
| Router not matching | Check `rule` syntax — Host, Path, PathPrefix |
| TLS not working | Check `certResolver` name matches static config |
| Service unreachable | Check `loadBalancer.servers[].url` format |
## HAProxy
### Test and reload config
```bash
haproxy -c -f /etc/haproxy/haproxy.cfg # test config
systemctl reload haproxy # reload
```
## Tooling Templates
- `tooling/network/nginx/` — guidance only. Generate Nginx, Traefik, or HAProxy configs for the installed version and validate them; no proxy starters are bundled.
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · tspry/superpowers-devops | 100 | MIT |
| nikospavlopoulos/devops-mutant-powers | 100 | MIT |
| FrancoStino/opencode-skills-collection | 100 | MIT |
| sickn33/agentic-awesome-skills | 100 | MIT |
| BagelHole/DevOps-Security-Agent-Skills | 100 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki 7d947fddbd9e (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100load-balancer
Opisuje równoważenie obciążenia z Nginx i HAProxy: konfigurację upstream, algorytmy, kontrole stanu, terminację SSL, trwałość sesji i monitoring. - 100nginx-reverse-proxy-load-balancing
Pomaga skonfigurować NGINX jako brzegowy reverse proxy, terminację SSL i równoważenie obciążenia. - 100nginx-config-builder
Generuje pliki konfiguracji NGINX dla serwerów WWW, reverse proxy, równoważenia obciążenia, SSL i plików statycznych. - 90reverse-proxy-tls
Konfiguruje i diagnozuje reverse proxy oraz HTTPS dla Caddy, Nginx i Traefik, sprawdzając ścieżkę od krawędzi do aplikacji. - 100api-gateway-kong-traefik
Konfiguruje bramy API, np. Kong i Traefik: proxy, routing usług, zakończenie SSL i limity żądań. - 100load-balancer
Konfiguruje load balancery i reverse proxy z Nginx i HAProxy: pule upstream, równoważenie najmniejszą liczbą połączeń, terminacja HTTPS, kontrole stanu, limity ruchu, sticky sessions i proxy WebSocket.