Support for webdav
diff --git a/apache/files/_locations.conf b/apache/files/_locations.conf
index 9e9b233..721b9e6 100644
--- a/apache/files/_locations.conf
+++ b/apache/files/_locations.conf
@@ -12,5 +12,9 @@
{%- include "apache/files/_auth.conf" %}
</Location>
{%- endif %}
+
+ {%- if location.webdav is defined %}
+ Dav {% if location.webdav.get('enabled', True) %}on{% else %}off{% endif %}
+ {%- endif %}
{%- endfor %}
{%- endif %}
diff --git a/apache/files/static.conf b/apache/files/static.conf
index 395fa29..58a91c3 100644
--- a/apache/files/static.conf
+++ b/apache/files/static.conf
@@ -16,10 +16,14 @@
allow from all
</Directory>
- {%- if site.auth is defined %}
+ {%- if site.auth is defined or site.webdav is defined %}
<Location />
{%- set auth = site.auth %}
{%- include "apache/files/_auth.conf" %}
+
+ {%- if site.webdav is defined %}
+ Dav {% if site.webdav.get('enabled', True) %}on{% else %}off{% endif %}
+ {%- endif %}
</Location>
{%- endif %}