|
21 | 21 | #--------------------------------------------------------------------- |
22 | 22 | # |
23 | 23 | backend {{ application.name }}_be |
24 | | - option httpchk {{ application.ha_method }} {{ application.ha_url }} |
| 24 | + option httpchk {{ application.ha_method }} {{ application.ha_url }} |
25 | 25 | http-check send ver HTTP/1.1 hdr Host {{ application.vhost_name }} |
26 | 26 |
|
27 | 27 | {%if application.x_forwarded_port is defined %} |
|
35 | 35 | cookie HTTPSERVERID insert nocache indirect httponly secure maxidle {{ haproxy_cookie_max_idle }} |
36 | 36 |
|
37 | 37 | {% for server in application.servers %} |
38 | | - server {{ server.label }} {{ server.ip }}:{% if server.port is defined %}{{ server.port }}{% else %}{{ application.port }}{% endif %} cookie {{ server.label }} check inter 8000 fall 5 rise 2 maxconn {{ application.maxconn | default('35') }} {% if application.sslbackend is defined%} ssl verify required verifyhost {{ application.backend_vhost_name }} ca-file {{ application.backend_ca_file }}{% endif %} weight 100 |
39 | | - |
| 38 | + server {{ server.label }} {{ server.ip }}:{% if server.port is defined %}{{ server.port }}{% else %}{{ application.port }}{% endif %} cookie {{ server.label }} check inter 8000 fall 5 rise 2 maxconn {{ application.maxconn | default('35') }} {% if application.sslbackend is defined%} ssl verify required verifyhost {{ application.backend_vhost_name }} ca-file {{ application.backend_ca_file }}{% endif %} weight 50 |
| 39 | + |
40 | 40 | {% endfor %} |
41 | 41 |
|
42 | 42 | {% endfor %} |
|
48 | 48 | #--------------------------------------------------------------------- |
49 | 49 | # |
50 | 50 | backend {{ application.name }}_staging_be |
51 | | - option httpchk {{ application.ha_method }} {{ application.ha_url }} |
| 51 | + option httpchk {{ application.ha_method }} {{ application.ha_url }} |
52 | 52 | http-check send ver HTTP/1.1 hdr Host {{ application.vhost_name }} |
53 | 53 |
|
54 | 54 | {%if application.x_forwarded_port is defined %} |
|
62 | 62 | cookie HTTPSERVERIDSTAGING insert nocache indirect httponly secure maxidle {{ haproxy_cookie_max_idle }} |
63 | 63 |
|
64 | 64 | {% for server in application.stagingservers %} |
65 | | - server {{ server.label }} {{ server.ip }}:{{ application.port }} cookie {{ server.label }} check inter 8000 fall 5 rise 2 maxconn {{ application.maxconn | default('35') }} {% if application.sslbackend is defined%} ssl verify required verifyhost {{ application.backend_vhost_name }} ca-file {{ application.backend_ca_file }}{% endif %} weight 100 |
66 | | - |
| 65 | + server {{ server.label }} {{ server.ip }}:{{ application.port }} cookie {{ server.label }} check inter 8000 fall 5 rise 2 maxconn {{ application.maxconn | default('35') }} {% if application.sslbackend is defined%} ssl verify required verifyhost {{ application.backend_vhost_name }} ca-file {{ application.backend_ca_file }}{% endif %} weight 50 |
| 66 | + |
67 | 67 | {% endfor %} |
68 | 68 | {% endif %} |
69 | 69 | {% endfor %} |
0 commit comments