configure-reverse-proxy-lb

Configures Nginx, Envoy, Caddy, and HAProxy with routing, TLS, and health checks.

9|3|Updated Jun 13, 2026
One-click install
npx skills add https://github.com/Sir-chawakorn/sanook-cli --skill configure-reverse-proxy-lb
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: configure-reverse-proxy-lb
Source: https://github.com/Sir-chawakorn/sanook-cli/tree/main/skills/configure-reverse-proxy-lb
Command: npx skills add https://github.com/Sir-chawakorn/sanook-cli --skill configure-reverse-proxy-lb

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill resolves common production issues like 502/504 errors, inefficient traffic distribution, and service downtime during deployments by providing a standardized configuration framework for reverse proxies and load balancers.

Core Features & Use Cases

  • Traffic Management: Implements advanced load balancing algorithms like least-conn and consistent hashing to optimize request distribution.
  • Reliability Engineering: Configures active/passive health checks, circuit breaking, and idempotent-safe retries to ensure high availability.
  • Use Case: Use this skill to configure an Nginx or Envoy proxy to handle TLS termination, manage upstream pools, and perform zero-drop graceful reloads during service updates.

Quick Start

Use the configure-reverse-proxy-lb skill to set up an Nginx load balancer with least-conn balancing and passive health checks for my backend service.

Frequently Asked Questions about configure-reverse-proxy-lb

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure Nginx for zero-drop load balancing during deployments?

To configure Nginx for zero-drop load balancing, set up upstream pools with active health monitoring and perform graceful connection draining during service updates. This ensures traffic is safely routed to healthy backends without dropping active connections.

Why does my reverse proxy return 502 and 504 errors under heavy traffic?

Reverse proxy 502 and 504 errors often stem from inefficient traffic distribution and unhealthy upstream connections. Implementing advanced load balancing algorithms like least-conn, alongside circuit breaking and timeout tuning, resolves these production reliability issues.

Can I use Envoy or HAProxy for TLS termination and consistent hashing?

Yes, you can use Envoy or HAProxy for TLS termination and consistent hashing. These reverse proxies support advanced traffic management algorithms, allowing you to efficiently terminate secure connections and distribute requests based on consistent hashing.

What is the best way to set up active and passive health checks for upstream services?

The best way to set up upstream health checks is configuring both active and passive monitoring alongside circuit breaking. This detects unhealthy backends, stops routing traffic to them, and ensures high availability across your service pool.

How do I implement idempotent-safe retries in a load balancer?

To implement idempotent-safe retries in a load balancer, configure retry policies that only re-attempt safe requests when upstream health checks fail. This prevents duplicate side-effects and maintains reliability during transient network issues.