Playbooks to a new Lilik
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.

15 lines
471 B

  1. {% for folder in webdav_folders %}
  2. location /{{ folder }}/ {
  3. alias {{ server_path }}/{{ folder }}/;
  4. client_body_temp_path {{ server_path }}/temp;
  5. dav_methods PUT DELETE MKCOL COPY MOVE;
  6. dav_ext_methods PROPFIND OPTIONS;
  7. create_full_put_path on;
  8. dav_access user:rw group:rw all:rw;
  9. autoindex on;
  10. auth_basic "restricted";
  11. auth_basic_user_file /etc/nginx/media_htpasswd;
  12. }
  13. {% endfor %}