vhost: Add support for matching by query
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user