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
629 B
23 lines
629 B
{% for share in nas_shares %}
|
|
{% if share.protocols.http.enabled %}
|
|
Alias /{{ share.name }} {{ share.path | default(nas_root_dir + '/data/' + share.name) }}
|
|
RewriteEngine On
|
|
{% if share.protocols.http.force_ssl %}
|
|
RewriteCond %{HTTPS} =off
|
|
RewriteRule ^/{{ share.name }}(/.*|$) https://%{HTTP_HOST}/{{ share.name }}$1
|
|
{% endif %}
|
|
|
|
<Directory {{ share.path | default(nas_root_dir + '/data/' + share.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 %}
|
|
|