updated haproxy state
This commit is contained in:
parent
1d36c17fed
commit
41e38d36e8
@ -91,12 +91,13 @@ haproxy:
|
||||
ssl_options:
|
||||
- no-sslv3
|
||||
- no-tls-tickets
|
||||
gzip_mime_types:
|
||||
compression_mime_types:
|
||||
- text/html
|
||||
- text/plain
|
||||
- text/css
|
||||
- text/javascript
|
||||
- application/json
|
||||
- application/octet-stream
|
||||
cache:
|
||||
size: 50000
|
||||
file_types:
|
||||
|
@ -24,7 +24,7 @@
|
||||
|
||||
{%- macro httpendpoints(servers=[], check=True, disabled=False) -%}
|
||||
{%- for server in servers %}
|
||||
server {{ server.name }} {{ server.name }}:{{ server.port }}{{ " " + httpcheckrules(inter=server.inter|default("2s"), fall=server.fall|default(5), rise=server.rise|default(5)) if check }}{{ " " + httpsslrules() if server.ssl|default(False) }}{{ " disabled" if server.disabled|default(False) }}{{ " send-proxy" if server.proxy|default(False) }}{{ " on-marked-down shutdown-sessions" if server.killsessions|default(False) }}
|
||||
server {{ server.name }} {{ server.name }}:{{ server.port }}{{ " " + httpcheckrules(inter=server.inter|default("2s"), fall=server.fall|default(5), rise=server.rise|default(5)) if check }}{{ " " + httpsslrules() if server.ssl|default(False) }}{{ " disabled" if server.disabled|default(False) }}{{ " send-proxy" if server.proxy|default(False) }}{{ " on-marked-down shutdown-sessions on-marked-up shutdown-backup-sessions" if server.killsessions|default(False) }}
|
||||
{%- endfor %}
|
||||
{%- endmacro -%}
|
||||
|
||||
@ -41,7 +41,7 @@
|
||||
|
||||
{%- macro compression() -%}
|
||||
compression algo gzip
|
||||
compression type {{ haproxy.config.gzip_mime_types|join(' ') }}
|
||||
compression type {{ haproxy.config.compression_mime_types|join(' ') }}
|
||||
{%- endmacro -%}
|
||||
|
||||
{%- macro admin() -%}
|
||||
@ -50,7 +50,7 @@ backend admin from {{ haproxy.config.namespace }}
|
||||
mode http
|
||||
stats enable
|
||||
stats admin if TRUE
|
||||
stats refresh 10s
|
||||
#stats refresh 10s
|
||||
stats show-modules
|
||||
stats show-legends
|
||||
stats uri /
|
||||
|
Loading…
Reference in New Issue
Block a user