User Tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

sailing:webdav [2024/01/12 18:05] – created willysailing:webdav [2024/02/22 09:47] (current) – removed willy
Line 1: Line 1:
- 
-I use NGINX for this: 
- 
-<file txt webdav.conf> 
- 
-location ~ ^/public { 
-        root /data/archive/; 
- 
-        dav_methods PUT DELETE MKCOL COPY MOVE; 
-        dav_ext_methods PROPFIND OPTIONS; 
-        dav_access user:rw group:rw all:r; 
- 
-        client_max_body_size 0; 
-        create_full_put_path on; 
-        client_body_temp_path /data/archive/temp; 
- 
-} 
- 
-location ~ ^/home/(.*)$ { 
-        alias /home/$remote_user/$1; 
- 
-        auth_pam "Casa"; 
-        auth_pam_service_name "nginx"; 
- 
-        dav_methods PUT DELETE MKCOL COPY MOVE; 
-        dav_ext_methods PROPFIND OPTIONS; 
-        dav_access user:rw group:rw all:r; 
- 
-        client_max_body_size 0; 
-        create_full_put_path on; 
-        client_body_temp_path /home/temp; 
-} 
-</file> 
- 
-the trick here is to match root content with actual location path (so, if root is /data/stuff and location is /archive, create folder /data/stuff/archive). Put temp folder on same drive to prevent file copying on upload. 
- 
  

This website uses technical cookies only. No information is shared with anybody or used in any way but provide the website in your browser.

More information