-
Notifications
You must be signed in to change notification settings - Fork 11
backends
The backend section can be configured with the YAML tree haproxy_backends
.
Example:
haproxy_backends:
- name: be-static
servers:
- name: concorde
ip: 127.0.0.1
port: 8080
params:
- check
String.
Boolean, optional.
String, optional.
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
String, optional.
String, optional.
String, optional.
Example:
mode: http
String, optional.
Numerical, optional.
Optional.
Accepts a mapping in the following format:
- name ;
- condition.
Example:
acl:
- name: acl-is-root
condition: path -i /
acl:
- { name: acl-is-root, condition: path -i / }
- { name: acl-is-static, condition: path_beg /static }
List, optional.
List, optional.
Optional.
Accepts a list of mappings in the following format:
- action ;
- param: optional ;
- condition: optional.
Example:
http_request:
- { action: auth, condition: unless acl-auth }
Optional.
Accepts a list of mappings in the following format:
- action ;
- param: optional ;
- condition: optional.
List, optional.
List, optional.
Optional.
Accepts a mapping in the following format:
- param ;
- value.
Example:
timout:
- param: connect
value: 5000
List, optional.
List, optional.
List, optional.
List, optional.
List, optional.
List, optional.
String, optional.
Optional.
Accepts a mapping in the following format:
- code ;
- file.
Example:
errorfile:
- {code: 400, file: /etc/haproxy/errors/400.http }
String, optional.