diff --git a/README.md b/README.md index 2e86f83..cc62562 100644 --- a/README.md +++ b/README.md @@ -122,6 +122,7 @@ Additionally, the plugin author may occasionally visit Obsidian official forum a - [Open Media Vault](./docs/remote_services/webdav_openmediavault/README.md) - [Nginx (`ngx_http_dav_module`, `nginx-dav-ext-module`, with Docker)](./docs/remote_services/webdav_nginx/README.md) - [Apache (with Docker)](./docs/remote_services/webdav_apache/README.md) + - [Caddy with `http.handlers.webdav` module](./docs/remote_services/webdav_caddy/README.md) - Very old version of Obsidian needs [configuring CORS](./docs/remote_services/webdav_general/webav_cors.md). - Your data would be synced to a `${vaultName}` sub folder on your webdav server. - Password-based end-to-end encryption is also supported. But please be aware that **the vault name itself is not encrypted**. diff --git a/README.zh-cn.md b/README.zh-cn.md index a91fa68..30f4034 100644 --- a/README.zh-cn.md +++ b/README.zh-cn.md @@ -122,6 +122,7 @@ - [Open Media Vault](./docs/remote_services/webdav_openmediavault/README.md) - [Nginx (`ngx_http_dav_module`, `nginx-dav-ext-module`, with Docker)](./docs/remote_services/webdav_nginx/README.md) - [Apache (with Docker)](./docs/remote_services/webdav_apache/README.md) + - [Caddy with `http.handlers.webdav` module](./docs/remote_services/webdav_caddy/README.md) - 非常旧版本的Obsidian需要[配置 CORS](./docs/remote_services/webdav_general/webav_cors.md)。 - 你的数据会同步到你的webdav服务器上的 `${vaultName}` 子文件夹。 - 基于密码的端到端加密也是可以的。但请注意,**vault 名称本身未加密**。 diff --git a/docs/remote_services/webdav_caddy/README.md b/docs/remote_services/webdav_caddy/README.md new file mode 100644 index 0000000..f42c443 --- /dev/null +++ b/docs/remote_services/webdav_caddy/README.md @@ -0,0 +1,33 @@ +# Caddy with `http.handlers.webdav` module + +> modified from the instruction from @cyruz-git in https://github.com/remotely-save/remotely-save/issues/825 + +## Link + + + +## Steps + +1. Download caddy with webdav module from . Or you can install Caddy then install the plugins. +2. Create a folder for storing webdav server files. Like `/usr/local/mywebdav`. +3. Create a `Caddyfile` (yeah the file name itself is `Caddyfile`.) like this: + ```caddy + :8080 { + route /dav/* { + root /usr/local/mywebdav + basicauth { + # Username "Bob", password "hiccup" + Bob $2a$14$Zkx19XLiW6VYouLHR5NmfOFU0z2GTNmpkT/5qqR7hx4IjWJPDhjvG + } + uri strip_prefix /dav + webdav + } + } + ``` + The password hash is generated like [this](https://caddyserver.com/docs/caddyfile/directives/basic_auth). +4. In Remotely Save, setup: + * address `http://localhost:8080/dav/` + * username `Bob` + * password `hiccup` + * auth type: `basic` +5. Check the connection and sync!