vhost: Add support for matching by query

This commit is contained in:
uumas
2026-03-28 05:58:51 +02:00
parent 728a57347d
commit a1e6c03827
3 changed files with 44 additions and 0 deletions

View File

@@ -10,6 +10,9 @@
{% for matcher in location.matchers %}
{% if matcher.name != '' %}
@{{ matcher.name }} {
{% for query in matcher.match_query | default([]) %}
{{ 'not ' if query.reverse else '' }}query {{ query.key }}={{ query.value | default('*') }}
{% endfor %}
{% if matcher.match_methods | default([]) | length > 0 %}
method {{ matcher.match_methods | join(' ') }}
{% endif %}