Skip to content
Tristan Le Guern edited this page Apr 24, 2019 · 3 revisions

listen

The listen section can be configured with the YAML tree haproxy_listen.

name

String.

bind

List, optional.

Examples:

bind:
- 0.0.0.0:80
- 0.0.0.0:1937

ssl

Optional and only useful in conjunction to bind as it will be applied to each of its elements.

Accepts a mapping in the following format:

  • cert: optional ;
  • ciphers: optional.

disabled

Boolean, optional.

description

String, optional.

servers

Optional.

Accepts a list of mappings in the following format:

  • name ;
  • ip ;
  • port: optional ;
  • maxconn: optional ;
  • params: list, optional.

Example:

servers:
- name: concorde
  ip: 127.0.0.1
  params:
  - check

maxconn

Numerical, optional.

balance

String, optional.

cookie

String, optional.

mode

String, optional.

Example:

mode: http

log

String, optional.

retries

List, optional.

contimeout

Numerical, optional and deprecated.

http_send_name_header

String, optional.

http_check_expect

List, optional.

options

List, optional.

timeout

Optional.

Accepts a mapping in the following format:

  • param ;
  • value.

Example:

timout:
- param: connect
  value: 5000

reqadd

List, optional.

rspadd

List, optional.

reqrep

List, optional.

reqirep

List, optional.

rsprep

List, optional.

respirep

List, optional.

appsession

String, optional.

stats

Accepts a mapping containing the following items:

  • enabled: boolean, optional ;
  • hide_version: boolean, optional ;
  • uri: optional ;
  • realm: optional ;
  • auth: optional ;
  • refresh: optional.

Example:

stats:
  enabled: true
  hide_version: true

force_persist

String, optional.

Clone this wiki locally