haproxy/backend/map-override¶
Configuration options for HAProxy backend services
HAProxy Backend Map Override¶
This parameter allows manual configuration of backend service mappings, overriding the auto-discovery process. Used when you need precise control over backend server configurations.
Requirements¶
- Valid HAProxy server configuration syntax for each backend entry
 - Each service name should match its corresponding frontend service
 - Server specifications must include valid hostnames/IPs and ports
 
Usage¶
Set this parameter to manually define backend servers:
  default:
    http:
      - server web1.example.com 192.168.1.10:80 maxconn 32
      - server web2.example.com 192.168.1.11:80 maxconn 32
    https:
      - server web1.example.com 192.168.1.10:443 ssl verify none
      - server web2.example.com 192.168.1.11:443 ssl verify none
    custom:
      - server app1.example.com 192.168.1.20:8080 check inter 2000
When this parameter is set, it completely replaces any auto-discovered backend configurations.