mirror of
https://github.com/rclone/rclone.git
synced 2024-11-25 01:44:41 +01:00
webdav: added an rclone vendor to work with rclone serve webdav
Fixes #7160
This commit is contained in:
parent
ca14b00b34
commit
ad83ff769b
@ -91,6 +91,9 @@ func init() {
|
|||||||
}, {
|
}, {
|
||||||
Value: "sharepoint-ntlm",
|
Value: "sharepoint-ntlm",
|
||||||
Help: "Sharepoint with NTLM authentication, usually self-hosted or on-premises",
|
Help: "Sharepoint with NTLM authentication, usually self-hosted or on-premises",
|
||||||
|
}, {
|
||||||
|
Value: "rclone",
|
||||||
|
Help: "rclone WebDAV server to serve a remote over HTTP via the WebDAV protocol",
|
||||||
}, {
|
}, {
|
||||||
Value: "other",
|
Value: "other",
|
||||||
Help: "Other site/service or software",
|
Help: "Other site/service or software",
|
||||||
@ -644,6 +647,10 @@ func (f *Fs) setQuirks(ctx context.Context, vendor string) error {
|
|||||||
// so we must perform an extra check to detect this
|
// so we must perform an extra check to detect this
|
||||||
// condition and return a proper error code.
|
// condition and return a proper error code.
|
||||||
f.checkBeforePurge = true
|
f.checkBeforePurge = true
|
||||||
|
case "rclone":
|
||||||
|
f.canStream = true
|
||||||
|
f.precision = time.Second
|
||||||
|
f.useOCMtime = true
|
||||||
case "other":
|
case "other":
|
||||||
default:
|
default:
|
||||||
fs.Debugf(f, "Unknown vendor %q", vendor)
|
fs.Debugf(f, "Unknown vendor %q", vendor)
|
||||||
|
@ -65,7 +65,7 @@ func TestWebDav(t *testing.T) {
|
|||||||
// Config for the backend we'll use to connect to the server
|
// Config for the backend we'll use to connect to the server
|
||||||
config := configmap.Simple{
|
config := configmap.Simple{
|
||||||
"type": "webdav",
|
"type": "webdav",
|
||||||
"vendor": "owncloud",
|
"vendor": "rclone",
|
||||||
"url": w.Server.URLs()[0],
|
"url": w.Server.URLs()[0],
|
||||||
"user": testUser,
|
"user": testUser,
|
||||||
"pass": obscure.MustObscure(testPass),
|
"pass": obscure.MustObscure(testPass),
|
||||||
|
@ -53,7 +53,9 @@ Choose a number from below, or type in your own value
|
|||||||
\ (sharepoint)
|
\ (sharepoint)
|
||||||
5 / Sharepoint with NTLM authentication, usually self-hosted or on-premises
|
5 / Sharepoint with NTLM authentication, usually self-hosted or on-premises
|
||||||
\ (sharepoint-ntlm)
|
\ (sharepoint-ntlm)
|
||||||
6 / Other site/service or software
|
6 / rclone WebDAV server to serve a remote over HTTP via the WebDAV protocol
|
||||||
|
\ (rclone)
|
||||||
|
7 / Other site/service or software
|
||||||
\ (other)
|
\ (other)
|
||||||
vendor> 2
|
vendor> 2
|
||||||
User name
|
User name
|
||||||
@ -149,6 +151,8 @@ Properties:
|
|||||||
- Sharepoint Online, authenticated by Microsoft account
|
- Sharepoint Online, authenticated by Microsoft account
|
||||||
- "sharepoint-ntlm"
|
- "sharepoint-ntlm"
|
||||||
- Sharepoint with NTLM authentication, usually self-hosted or on-premises
|
- Sharepoint with NTLM authentication, usually self-hosted or on-premises
|
||||||
|
- "rclone",
|
||||||
|
- rclone WebDAV server to serve a remote over HTTP via the WebDAV protocol,
|
||||||
- "other"
|
- "other"
|
||||||
- Other site/service or software
|
- Other site/service or software
|
||||||
|
|
||||||
@ -379,6 +383,14 @@ For Rclone calls copying files (especially Office files such as .docx, .xlsx, et
|
|||||||
--ignore-size --ignore-checksum --update
|
--ignore-size --ignore-checksum --update
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Rclone
|
||||||
|
|
||||||
|
Use this option if you are hosting remotes over WebDAV provided by rclone.
|
||||||
|
Read [rclone serve webdav](commands/rclone_serve_webdav/) for more details.
|
||||||
|
|
||||||
|
rclone serve supports modified times using the `X-OC-Mtime` header.
|
||||||
|
|
||||||
|
|
||||||
### dCache
|
### dCache
|
||||||
|
|
||||||
dCache is a storage system that supports many protocols and
|
dCache is a storage system that supports many protocols and
|
||||||
|
@ -12,6 +12,7 @@ start() {
|
|||||||
run rclone serve webdav --user $USER --pass $PASS --addr ${IP}:${PORT} ${DATADIR}
|
run rclone serve webdav --user $USER --pass $PASS --addr ${IP}:${PORT} ${DATADIR}
|
||||||
|
|
||||||
echo type=webdav
|
echo type=webdav
|
||||||
|
echo vendor=rclone
|
||||||
echo url=http://${IP}:${PORT}/
|
echo url=http://${IP}:${PORT}/
|
||||||
echo user=$USER
|
echo user=$USER
|
||||||
echo pass=$(rclone obscure $PASS)
|
echo pass=$(rclone obscure $PASS)
|
||||||
|
Loading…
Reference in New Issue
Block a user