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.
23 lines
625 B
23 lines
625 B
{% 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 %}
|
|
|