Skip to content

Commit

Permalink
Update haproxy.cfg.j2
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Igou authored Nov 10, 2023
1 parent af99c27 commit 86367d4
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions roles/haproxy/templates/haproxy.cfg.j2
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,29 @@ backend ingress-https
server {{ host }} {{ host }}:30443 check send-proxy
{% endfor %}

# Extra frontend configurations
{% for frontend in frontends %}
frontend {{ frontend.name }}
bind *:{{ frontend.port }}
default_backend {{ frontend.default_backend }}
mode {{ frontend.mode }}
{% if frontend.options %}
{% for option in frontend.options %}
option {{ option }}
{% endfor %}
{% endif %}
{% endfor %}

# Extra Backend configurations
{% for backend in backends %}
backend {{ backend.name }}
balance {{ backend.balance }}
mode {{ backend.mode }}
{% for host in ingress_hosts %}
server {{ host }} {{ host }}:{{ backend.port }} check send-proxy
{% endfor %}
{% endfor %}


#---------------------------------------------------------------------

0 comments on commit 86367d4

Please sign in to comment.