Skip to content

Server pools, VIPs, virtual servers and trusted proxies Since v0.2 ​

These top-level keys define where clients connect and where traffic goes. listeners is the file name for virtual servers.

For the structure of the file, see Configuration file. Defaults of limits are also listed in Limits and defaults. A dash in Default means the code sets no default value (the setting is empty or off).

Server pools ​

KeyTypeDefaultAllowed values / rangeMeaningGuide page
server_pools[]list of object——Group of settings: server pools.Server pools
server_pools[].namestring——The name that identifies this entry.Server pools
server_pools[].balancingstring—round_robin, least_request, randomSets balancing.Server pools
server_pools[].servers[]list of object——Group of settings: servers.Server pools
server_pools[].servers[].addressstring——Network address, host:port or IP.Server pools
server_pools[].servers[].weightinteger——Weight of this signal in the score.Server pools
server_pools[].servers[].statestring—active, draining, disabledSets state.Server pools
server_pools[].health_checkobject——Group of settings: health check.Server pools
server_pools[].health_check.hoststring——Host name this entry applies to or connects to.Server pools
server_pools[].health_check.pathstring——Request path.Server pools
server_pools[].health_check.intervalduration5s—Time between runs or checks.Server pools
server_pools[].health_check.timeoutduration2s—Time allowed before the operation is abandoned.Server pools
server_pools[].health_check.healthy_afterinteger2—Sets healthy after.Server pools
server_pools[].health_check.unhealthy_afterinteger3—Sets unhealthy after.Server pools
server_pools[].connect_timeoutduration——Sets connect timeout.Server pools
server_pools[].tlsobject——Group of settings: tls.Server pools
server_pools[].tls.enabledboolean——Turns the feature on or off.Server pools
server_pools[].tls.verifybooleantrue when enabled—default true when enabledServer pools
server_pools[].tls.castring——Path to the CA certificate used to verify the peer.Server pools
server_pools[].tls.server_namestring——TLS server name to present and verify.Server pools

VIPs ​

KeyTypeDefaultAllowed values / rangeMeaningGuide page
vips[]list of object——Group of settings: vips.VIPs
vips[].namestring——The name that identifies this entry.VIPs
vips[].addressstring——Network address, host:port or IP.VIPs
vips[].descriptionstring——Free-text description.VIPs
vips[].floatingboolean——floating VIPs are moved between the nodes of a pair by failover; they must be one of ha.virtual_addresses.VIPs

Virtual servers (listeners) ​

KeyTypeDefaultAllowed values / rangeMeaningGuide page
listeners[]list of object——Group of settings: listeners.Virtual servers
listeners[].namestring——The name that identifies this entry.Virtual servers
listeners[].addressstring——Network address, host:port or IP.Virtual servers
listeners[].vipstring——Sets vip.Virtual servers
listeners[].portinteger——TCP port.Virtual servers
listeners[].protocolstring—http, httpsSets protocol.Virtual servers
listeners[].tlsobject——Group of settings: tls.Virtual servers
listeners[].tls.min_versionstring1.21.2, 1.3Sets min version.Virtual servers

Trusted proxies ​

KeyTypeDefaultAllowed values / rangeMeaningGuide page
trusted_proxieslist of string—IP or CIDRSets trusted proxies.Client identity

Example ​

yaml
version: 2
trusted_proxies: [10.0.0.0/8]
listeners:
  - {name: web, address: "0.0.0.0:8080", protocol: http}
  - {name: web-tls, address: "0.0.0.0:8443", protocol: https, tls: {min_version: "1.2"}}
server_pools:
  - name: shop
    balancing: round_robin
    servers:
      - {address: "127.0.0.1:9000", weight: 1, state: active}
    health_check: {path: /healthz, interval: 5s, timeout: 2s}
applications:
  - name: shop
    hostnames: [shop.example.com]
    listeners: [web]
    server_pool: shop