Skip to content

Commit

Permalink
Merge pull request #67 from dricoco/dricoco-patch-3
Browse files Browse the repository at this point in the history
Update haproxy-frontend.cfg.j2
  • Loading branch information
goldyfruit authored Jan 27, 2023
2 parents efe55b1 + e186e5d commit 3fa27e4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ haproxy_frontend:
- url_static path_end -i .jpg .gif .png .css .js
bind_process:
- 1
log_formats:
- "%ci:%cp [%tr] %ft %b/%s %TR/%Tw/%Tc/%Tr/%Ta %ST %B %CC %CS %tsc %ac/%fc/%bc/%sc/%rc %sq/%bq %hr %hs %{+Q}r"
use_backends:
- static if url_static
capture:
Expand Down
5 changes: 5 additions & 0 deletions templates/etc/haproxy/haproxy-frontend.cfg.j2
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ frontend {{ name }}
redirect {{ redirect }}
{% endfor %}
{% endif %}
{% if value.log_formats is defined %}
{% for log_format in value.log_formats %}
log-format {{ log_format }}
{% endfor %}
{% endif %}
{% if value.logs is defined %}
{% for log in value.logs %}
log {{ log }}
Expand Down

0 comments on commit 3fa27e4

Please sign in to comment.