|
|
- {% for folder in webdav_folders %}
- location /{{ folder }}/ {
- alias {{ server_path }}/{{ folder }}/;
-
- client_body_temp_path {{ server_path }}/temp;
- dav_methods PUT DELETE MKCOL COPY MOVE;
- dav_ext_methods PROPFIND OPTIONS;
- create_full_put_path on;
- dav_access user:rw group:rw all:rw;
- autoindex on;
-
- auth_basic "restricted";
- auth_basic_user_file /etc/nginx/media_htpasswd;
- }
- {% endfor %}
|