Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 38 additions & 31 deletions pages/guide/drivers/webdav.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,57 +11,62 @@ categories:
- drivers
---

## 地址 { lang="zh-CN" }

## Address { lang="en" }

## 跳过 SSL 证书验证 { lang="zh-CN" }

::: en
WebDAV root address
:::

::: zh-CN
WebDAV 根地址
:::

## 用户名 { lang="zh-CN" }

## Username { lang="en" }

## 用户名 { lang="zh-CN" }

::: en
username
:::

::: zh-CN
用户名
:::

## 密码 { lang="zh-CN" }

## Password { lang="en" }

## 密码 { lang="zh-CN" }

::: en
password
:::

::: zh-CN
密码
:::

## 根文件夹ID { lang="zh-CN" }

## Root folder path { lang="en" }

## 根文件夹ID { lang="zh-CN" }

::: en
The path of fodler you want to mount, same as join in address
:::

::: zh-CN
要挂载的文件夹路径,与加入地址相同
:::

## Tls insecure skip verify { lang="zh-CN" }
## Tls insecure skip verify { lang="en" }

## 跳过 SSL 证书验证 { lang="zh-CN" }

::: en
Whether to skip SSL certificate verification. If your WebDAV server uses a self-signed certificate, you may need to enable this option. Enabling it will reduce security, please use it with caution.
:::

::: zh-CN
是否跳过 SSL 证书验证。如果你的 WebDAV 服务器使用自签名证书,可能需要启用此选项。启用后会降低安全性,请谨慎使用。
:::
Expand All @@ -70,20 +75,6 @@ Whether to skip SSL certificate verification. If your WebDAV server uses a self-

## 支持 302 重定向 { lang="zh-CN" }

::: zh-CN

通常情况下,WebDAV 服务器会直接返回文件内容,由于需要授权,只能代理下载。但一些服务器会重定向到实际的文件地址,如 OpenList `WebDav 策略` 的 `302 重定向`。

WebDAV 存储设置的 `Web 代理` 选项默认为开启状态,如果关闭,OpenList 将会尝试获取重定向后的地址,然后将该地址返回给用户设备直接下载。

前提条件:

1. WebDAV 服务器必须支持返回 302,如果返回 200,则无法使用此功能,关闭 Web 代理将无法使用。
2. 返回的 302 地址必须是公开可访问的地址,不得需要授权信息,否则用户设备无法下载。
3. 在存储设置中关闭 `Web 代理` 选项。

:::

::: en

In general, WebDAV servers return the file content directly. Due to the need for authorization, only proxy downloads are possible. However, some servers redirect to the actual file address, such as OpenList `WebDav Policy`'s `302 Redirect`.
Expand All @@ -98,29 +89,44 @@ Prerequisites:

:::

## OneDrive/SharePoint { lang="zh-CN" }
::: zh-CN

通常情况下,WebDAV 服务器会直接返回文件内容,由于需要授权,只能代理下载。但一些服务器会重定向到实际的文件地址,如 OpenList `WebDav 策略` 的 `302 重定向`。

WebDAV 存储设置的 `Web 代理` 选项默认为开启状态,如果关闭,OpenList 将会尝试获取重定向后的地址,然后将该地址返回给用户设备直接下载。

前提条件:

1. WebDAV 服务器必须支持返回 302,如果返回 200,则无法使用此功能,关闭 Web 代理将无法使用。
2. 返回的 302 地址必须是公开可访问的地址,不得需要授权信息,否则用户设备无法下载。
3. 在存储设置中关闭 `Web 代理` 选项。

:::

## OneDrive/SharePoint { lang="en" }

## OneDrive/SharePoint { lang="zh-CN" }

::: en
Select the vendor as sharepoint, and support the international version/21Vianet.

For OneDrive/SharePoint, you can obtain the webdav root address through [this tool](https://tool.example.com/onedrive/webdav). If you want to mount the specified directory, you can join it later.
For OneDrive/SharePoint, you can obtain the WebDAV root address through [this tool](https://tool.example.com/onedrive/webdav). If you want to mount the specified directory, you can join it later.

The username is the OneDrive account email, and the password is the OneDrive account password.
:::

::: zh-CN
选择 vendor 为 sharepoint,支持国际版/世纪互联。

你可以通过[这个工具](https://alist.example.com/tool/onedrive/webdav.html)获取 WebdAV 根地址,如果要挂载指定的目录,在后面拼接即可。
你可以通过[这个工具](https://alist.example.com/tool/onedrive/webdav.html)获取 WebDAV 根地址,如果要挂载指定的目录,在后面拼接即可。

用户名为 OneDrive 账号邮箱,密码即为 OneDrive 账号密码。
:::

## 错误提示 { lang="zh-CN" }

## Error message { lang="en" }

## 错误提示 { lang="zh-CN" }

::: en

- **failed get objs: failed to list objs: PROPFIND/根目录:403**
Expand All @@ -138,6 +144,7 @@ The username is the OneDrive account email, and the password is the OneDrive acc
This error indicates that the WebDAV server does not support 302 redirects. You need to enable the `Web Proxy` option in the storage settings to use proxy downloads.

:::

::: zh-CN

- **failed get objs: failed to list objs: PROPFIND/根目录:403**
Expand All @@ -148,18 +155,18 @@ The username is the OneDrive account email, and the password is the OneDrive acc

![webdav](/img/drivers/webdav/webdav_Security.png)

另外一种情况是对应的 OneDrive 账号太长时间没有操作也会提示这个问题,尝试从 OneDrive 网页端重新登录账号,系统会提示要求更改密码,更新密码后,使用更改后的密码再次尝试即可
另外一种情况是对应的 OneDrive 账号太长时间没有操作也会提示这个问题,尝试从 OneDrive 网页端重新登录账号,系统会提示要求更改密码,更新密码后,使用更改后的密码再次尝试即可

- **failed link: failed get link: redirect failed, status: 200**

此错误表示 WebDAV 服务器不支持 302 重定向,需要在存储设置中启用 `Web 代理` 选项以使用代理下载。

:::

## 默认使用的下载方式 { lang="zh-CN" }

## The default download method used { lang="en" }

## 默认使用的下载方式 { lang="zh-CN" }

::: en

```mermaid
Expand Down