Compare commits
2 Commits
c0753aeaa2
...
8af49bcc3e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8af49bcc3e | ||
|
|
cb0817fc54 |
@@ -378,7 +378,9 @@ argument_specs:
|
|||||||
elements: dict
|
elements: dict
|
||||||
options:
|
options:
|
||||||
path:
|
path:
|
||||||
description: Path to match. Only supports full paths for now.
|
description: >-
|
||||||
|
Path to match.
|
||||||
|
If the value begins with ^ and end with $, the value is matched as regex.
|
||||||
type: str
|
type: str
|
||||||
required: true
|
required: true
|
||||||
type:
|
type:
|
||||||
@@ -565,8 +567,7 @@ argument_specs:
|
|||||||
match_headers:
|
match_headers:
|
||||||
description: >-
|
description: >-
|
||||||
Headers to match against.
|
Headers to match against.
|
||||||
The value is matched as regex.
|
If the value begins with ^ and end with $, the value is matched as regex.
|
||||||
^ and $ are implied, so don't add them yourself.
|
|
||||||
type: dict
|
type: dict
|
||||||
required: false
|
required: false
|
||||||
default: {}
|
default: {}
|
||||||
|
|||||||
@@ -1,7 +1,12 @@
|
|||||||
#jinja2: lstrip_blocks: True
|
#jinja2: lstrip_blocks: True
|
||||||
{{ vhost_domains | join(' ') }} {
|
{{ vhost_domains | join(' ') }} {
|
||||||
{% for location in _vhost_locations_complete %}
|
{% for location in _vhost_locations_complete %}
|
||||||
handle {{ location.path }} {
|
{% if location.path != '' %}
|
||||||
|
@{{ location.path }} path{{ '_regexp' if location.path.startswith('^') and location.path.endswith('$') else '' }} {{ location.path }}
|
||||||
|
handle @{{ location.path }} {
|
||||||
|
{% else %}
|
||||||
|
handle {
|
||||||
|
{% endif %}
|
||||||
{% for matcher in location.matchers %}
|
{% for matcher in location.matchers %}
|
||||||
{% if matcher.name != '' %}
|
{% if matcher.name != '' %}
|
||||||
@{{ matcher.name }} {
|
@{{ matcher.name }} {
|
||||||
|
|||||||
Reference in New Issue
Block a user