add support for custom locations

This commit is contained in:
nd 2020-04-29 18:51:49 +02:00
parent 1ddb7fa78d
commit b3aa2c6169
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9
2 changed files with 9 additions and 1 deletions

View file

@ -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**

View file

@ -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 %}