-
Notifications
You must be signed in to change notification settings - Fork 11
defaults
Tristan Le Guern edited this page Apr 15, 2019
·
1 revision
The defaults
section can be configured with the YAML tree haproxy_defaults
.
String.
Example:
mode: http
Accepts a list of mappings of the following format:
- address ;
- facility: optional ;
- level: optional ;
- minlevel: optional ;
- format: optional.
Example:
log:
- address: /dev/log
facility: local0
- address: localhost:514
level: warning
facility: local7
Numerical.
Accepts a list of mappings in the following format:
- param ;
- value.
Example:
timeout:
- param: connect
value: 5000
- param: client
value: 5000
- param: tunnel
value: 50000
Numerical.
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
Accept a list of values.
Example:
options:
- dontlognull
- forceclose
Accepts a list of mappings in the following format:
- code ;
- file.
Example:
errorfile:
- { code: 400, file: /etc/haproxy/errors/400.http }
- { code: 404, file: /etc/haproxy/errors/404.http }
String.
Example:
balance: roundrobin
String.
Accepts a mapping containing the following items:
- algo: optional ;
- type: optional ;
- offload: boolean, optional.
Example:
compression:
algo: gzip
type: 'test/html text/plain'
Accepts a mapping containing the following items:
- disable_on_404: boolean, optional ;
- expect: optional ;
- send_state: boolean, optional.
Example:
http_check:
disable_on_404: true
expect: 'status 200'
send_state: true