You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
625 B
24 lines
625 B
5 years ago
|
{% for share in nas_shares %}
|
||
|
{% if share.protocols.http.enabled %}
|
||
|
Alias /{{ share.name }} {{ item.path | default(nas_root_dir + '/data/' + item.name) }}
|
||
|
RewriteEngine On
|
||
|
{% if share.protocols.http.force_ssl %}
|
||
|
RewriteCond %{HTTPS} =off
|
||
|
RewriteRule ^/{{ share.name }}(/.*|$) https://%{HTTP_HOST}/{{ share.name }}$1
|
||
|
{% endif %}
|
||
|
|
||
|
<Directory {{ item.path | default(nas_root_dir + '/data/' + item.name) }}>
|
||
|
Options None
|
||
|
Options +FollowSymlinks
|
||
|
{% if share.protocols.http.force_ssl %}
|
||
|
SSLRequireSSL On
|
||
|
{% endif %}
|
||
|
{% if share.protocols.http.indexes %}
|
||
|
Options +Indexes
|
||
|
{% endif %}
|
||
|
</Directory>
|
||
|
|
||
|
|
||
|
{% endif %}
|
||
|
{% endfor %}
|