add support for custom locations
This commit is contained in:
parent
1ddb7fa78d
commit
b3aa2c6169
2 changed files with 9 additions and 1 deletions
|
|
@ -96,6 +96,9 @@ match: ''
|
||||||
|
|
||||||
# an absolut unix path, only set if not none
|
# an absolut unix path, only set if not none
|
||||||
alias: None
|
alias: None
|
||||||
|
|
||||||
|
# Array of custom config strings to add to the vhost config, the ";" is added after every entry
|
||||||
|
custom: []
|
||||||
```
|
```
|
||||||
|
|
||||||
**authconfig**
|
**authconfig**
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,12 @@ server {
|
||||||
|
|
||||||
{% for location in vhost.locations|default([]) %}
|
{% for location in vhost.locations|default([]) %}
|
||||||
location {{ location.match }} {
|
location {{ location.match }} {
|
||||||
{% if location.alias %}alias {{ location.alias }};{% endif %}
|
{% if "alias" in location %}
|
||||||
|
alias {{ location.alias }};
|
||||||
|
{% endif %}
|
||||||
|
{% for c in location.custom|default([]) %}
|
||||||
|
{{ c }};
|
||||||
|
{% endfor %}
|
||||||
}
|
}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue