updated haproxy state

This commit is contained in:
Paul 2023-05-17 13:20:14 +02:00
parent 1d36c17fed
commit 41e38d36e8
2 changed files with 5 additions and 4 deletions

View File

@ -91,12 +91,13 @@ haproxy:
ssl_options: ssl_options:
- no-sslv3 - no-sslv3
- no-tls-tickets - no-tls-tickets
gzip_mime_types: compression_mime_types:
- text/html - text/html
- text/plain - text/plain
- text/css - text/css
- text/javascript - text/javascript
- application/json - application/json
- application/octet-stream
cache: cache:
size: 50000 size: 50000
file_types: file_types:

View File

@ -24,7 +24,7 @@
{%- macro httpendpoints(servers=[], check=True, disabled=False) -%} {%- macro httpendpoints(servers=[], check=True, disabled=False) -%}
{%- for server in servers %} {%- 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 %} {%- endfor %}
{%- endmacro -%} {%- endmacro -%}
@ -41,7 +41,7 @@
{%- macro compression() -%} {%- macro compression() -%}
compression algo gzip compression algo gzip
compression type {{ haproxy.config.gzip_mime_types|join(' ') }} compression type {{ haproxy.config.compression_mime_types|join(' ') }}
{%- endmacro -%} {%- endmacro -%}
{%- macro admin() -%} {%- macro admin() -%}
@ -50,7 +50,7 @@ backend admin from {{ haproxy.config.namespace }}
mode http mode http
stats enable stats enable
stats admin if TRUE stats admin if TRUE
stats refresh 10s #stats refresh 10s
stats show-modules stats show-modules
stats show-legends stats show-legends
stats uri / stats uri /