{% for share in shares %}
location /share/{{ share.name }}/ {
    root {{ share.path }};
    auth_basic "Restricted Access";
    auth_basic_user_file /opt/realcom-nas/htpasswd/{{ share.name }}.htpasswd;
    limit_except GET POST OPTIONS {
        deny all;
    }
    client_max_body_size 0;
    autoindex off;
}
{% endfor %}
