Skip to content

haproxy/backend/map

Configuration options for HAProxy backend services

HAProxy Backend Map

This parameter stores the automatically discovered backend service configurations used to generate the HAProxy configuration. It maps service names to their corresponding server configurations.

Requirements

  • Generated automatically by haproxy-configure.py
  • Do not modify manually - use haproxy/backend/map-override for manual configuration

Usage

The parameter is populated automatically based on discovered services. The structure is:

  service-name:
    - "server host1.example.com 192.168.1.10:80 maxconn 32"
    - "server host2.example.com 192.168.1.11:80 maxconn 32"

Example auto-generated configuration:

  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