Difference between revisions of "Webdav"

From Wasya Wiki
Jump to: navigation, search
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
* https://askubuntu.com/questions/498526/mounting-a-webdav-share-by-users
+
* See also [[ apache ]]
 +
* See also [[ nginx ]]
  
 
From: https://github.com/keeweb/keeweb/wiki/WebDAV%20Config
 
From: https://github.com/keeweb/keeweb/wiki/WebDAV%20Config
  
for nginx:
+
= Install =
 +
= Use =
 +
== mount on Mac ==
 +
 
 +
  ## this doesn't work b/c it's read-only
 +
  mount_webdav -i https://webdav.yandex.ru:443 /Volumes/temp
 +
 
 +
== unmount ==
 +
  diskutil unmount <mount-point>
 +
 
 +
== mount on ubuntu ==
 +
* https://askubuntu.com/questions/498526/mounting-a-webdav-share-by-users
  
<pre>
+
fstab can specify defaults, also file and folder permissions.
add_header 'Access-Control-Allow-Origin' '*' always;
+
add_header 'Access-Control-Allow-Credentials' 'true' always;
+
add_header 'Access-Control-Allow-Methods' 'GET, HEAD, POST, PUT, OPTIONS, MOVE, DELETE, COPY, LOCK, UNLOCK' always;
+
add_header 'Access-Control-Allow-Headers' 'Authorization,DNT,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,X-Accept-Charset,X-Accept,origin,accept,if-match,destination,overwrite' always;
+
add_header 'Access-Control-Expose-Headers' 'ETag' always;
+
add_header 'Access-Control-Max-Age' 1728000 always;
+
if ($request_method = 'OPTIONS') {
+
  add_header 'Content-Type' 'text/plain charset=UTF-8';
+
  add_header 'Content-Length' 0;
+
  add_header 'Access-Control-Allow-Origin' '*';
+
  add_header 'Access-Control-Allow-Credentials' 'true';
+
  add_header 'Access-Control-Allow-Methods' 'GET, HEAD, POST, PUT, OPTIONS, MOVE, DELETE, COPY, LOCK, UNLOCK';
+
  add_header 'Access-Control-Allow-Headers' 'Authorization,DNT,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,X-Accept-Charset,X-Accept,origin,accept,if-match,destination,overwrite';
+
  add_header 'Access-Control-Expose-Headers' 'ETag';
+
  add_header 'Access-Control-Max-Age' 1728000;
+
  return 204;
+
}
+
</pre>
+

Latest revision as of 19:26, 2 October 2024

From: https://github.com/keeweb/keeweb/wiki/WebDAV%20Config

Install

Use

mount on Mac

 ## this doesn't work b/c it's read-only
 mount_webdav -i https://webdav.yandex.ru:443 /Volumes/temp

unmount

 diskutil unmount <mount-point>

mount on ubuntu

fstab can specify defaults, also file and folder permissions.