| 1234567891011121314151617181920212223242526272829303132333435363738 |
- # HAProxy configuration template
- global
- daemon
- log stdout local0
- {%- if template_directives["global"] %}
- {%- for directive in template_directives["global"] %}
- {{ directive }}
- {%- endfor %}
- {%- endif %}
-
- defaults
- mode http
- timeout connect 5000ms
- timeout client 5000ms
- timeout server 50000ms
- option httplog
- log global
- {%- if template_directives["defaults"] %}
- {%- for directive in template_directives["defaults"] %}
- {{ directive }}
- {%- endfor %}
- {%- endif %}
- listen http
- bind {{ listen_addr }}:{{ listen_port }}
- option httplog
-
- {%- if template_directives["frontend_http"] %}
- {%- for directive in template_directives["frontend_http"] %}
- {{ directive }}
- {%- endfor %}
- {%- endif %}
- server dummy {{ backend_host }}:{{ backend_port }}
|