Skip to content

jeremylongshore/tons-of-skills-marketplace / plugins/devops/load-balancer-configurator/skills/configuring-load-balancers

configuring-load-balancers

Verified

Configure use when configuring load balancers including ALB, NLB, Nginx, and HAProxy. Trigger with phrases like "configure load balancer", "create ALB", "setup nginx load balancing", or "haproxy configuration". Generates production-ready configurations with health checks, SSL termination, sticky sessions, and traffic distribution rules.

FileKindSize
SKILL.mdskill md4.6 KB
assets/README.mdmarkdown232 B
assets/haproxy_template.confconfig3.0 KB
assets/nginx_template.confconfig3.8 KB
references/README.mdmarkdown69 B
references/errors.mdmarkdown913 B
references/examples.mdmarkdown330 B
scripts/README.mdmarkdown381 B
scripts/generate_config.pyexecutablescript3.6 KB

assets/haproxy_template.conf

View on GitHub
# HAProxy Configuration File
# This template is designed for production environments.
# Adjust the values below to match your specific needs.
#
# For detailed documentation, refer to: http://www.haproxy.org/download/1.8/doc/configuration.txt

global
    log /dev/log local0
    log /dev/log local1 notice
    chroot /var/lib/haproxy
    stats socket /run/haproxy/admin.sock mode 660 level admin
    stats timeout 30s
    user haproxy
    group haproxy
    daemon

    # Default SSL material locations
    ssl-default-bind-ciphers ECDH+AESGCM:!DH
    ssl-default-bind-options no-sslv3

defaults
    log global
    mode http
    option httplog
    option dontlognull
    timeout connect 5000ms
    timeout client  50000ms
    timeout server  50000ms
    timeout http-request 10s
    timeout http-keep-alive 15s
    retries 3
    option redispatch
    option http-server-close

# Frontend: Incoming HTTP/HTTPS traffic
frontend http_frontend
    bind *:80
    mode http
    # Add your ACLs and rules here for HTTP traffic
    # Example:
    # acl is_api path_beg /api
    # use_backend api_backend if is_api
    default_backend app_backend

frontend https_frontend
    bind *:443 ssl crt /etc/haproxy/ssl/yourdomain.pem
    mode http
    # Add your ACLs and rules here for HTTPS traffic
    # Example:
    # acl is_api path_beg /api
    # use_backend api_backend if is_api
    http-request add-header X-Forwarded-Proto https
    default_backend app_backend

# Backend: Application Servers
backend app_backend
    balance roundrobin  # Load balancing algorithm: roundrobin, leastconn, etc.
    # Configure health checks
    option httpchk GET /healthcheck # Replace with your application's health check endpoint
    http-check expect status 200
    # Add your application servers here
    # Example:
    server app1 <SERVER_IP_ADDRESS_1>:8080 check # Replace with your server IP and port
    server app2 <SERVER_IP_ADDRESS_2>:8080 check # Replace with your server IP and port
    server app3 <SERVER_IP_ADDRESS_3>:8080 check # Replace with your server IP and port

# Backend: API Servers (Example, if you have a separate API)
backend api_backend
    balance leastconn
    # Configure health checks
    option httpchk GET /api/health # Replace with your API's health check endpoint
    http-check expect status 200
    # Add your API servers here
    # Example:
    server api1 <API_SERVER_IP_ADDRESS_1>:8081 check # Replace with your server IP and port
    server api2 <API_SERVER_IP_ADDRESS_2>:8081 check # Replace with your server IP and port

# Statistics Page
listen stats
    bind *:8080
    mode http
    stats enable
    stats uri /haproxy_stats
    stats realm Haproxy\ Statistics
    stats auth <USERNAME>:<PASSWORD> # Replace with a strong username and password
    stats admin if TRUE #Enable admin interface

# TCP Mode Backend (Example - for non-HTTP traffic)
# backend tcp_backend
#   mode tcp
#   balance roundrobin
#   server tcp_server1 <TCP_SERVER_IP_ADDRESS_1>:3306 check
#   server tcp_server2 <TCP_SERVER_IP_ADDRESS_2>:3306 check
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 196kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 196kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 196kUpdated Claude CodeCodexVerifiedInstall