From a084ec772891e27345c794dbbd9d60dc187cc3ff Mon Sep 17 00:00:00 2001 From: fyears <1142836+fyears@users.noreply.github.com> Date: Sat, 20 Jan 2024 13:03:46 +0800 Subject: [PATCH] synology webdav server --- README.md | 1 + .../webdav_synology_webdav_server/README.md | 55 ++++++++++++++++++ .../README.zh-cn.md | 56 +++++++++++++++++++ .../synology_create_shared_folder.png | 3 + .../synology_install_webdav_server.png | 3 + .../synology_remotely_save_settings.png | 3 + .../synology_webdav_server_settings.png | 3 + 7 files changed, 124 insertions(+) create mode 100644 docs/remote_services/webdav_synology_webdav_server/README.md create mode 100644 docs/remote_services/webdav_synology_webdav_server/README.zh-cn.md create mode 100644 docs/remote_services/webdav_synology_webdav_server/synology_create_shared_folder.png create mode 100644 docs/remote_services/webdav_synology_webdav_server/synology_install_webdav_server.png create mode 100644 docs/remote_services/webdav_synology_webdav_server/synology_remotely_save_settings.png create mode 100644 docs/remote_services/webdav_synology_webdav_server/synology_webdav_server_settings.png diff --git a/README.md b/README.md index 37ea7e5..5978a0d 100644 --- a/README.md +++ b/README.md @@ -95,6 +95,7 @@ Additionally, the plugin author may occasionally visit Obsidian official forum a - Tutorials / Examples: - [ownCloud](./docs/remote_services/webdav_owncloud/README.md) - [InfiniCloud](./docs/remote_services/webdav_infinicloud_teracloud/README.md) + - [Synology webdav server](./docs/remote_services/webdav_synology_webdav_server/README.md) | [群晖 webdav server](./docs/remote_services/webdav_synology_webdav_server/README.zh-cn.md) - [AList](./docs/remote_services/webdav_alist/README.md) - [坚果云 JianGuoYun/NutStore](./docs/remote_services/webdav_jianguoyun/README.md) - Very old version of Obsidian needs [configuring CORS](./docs/remote_services/webdav_general/webav_cors.md). diff --git a/docs/remote_services/webdav_synology_webdav_server/README.md b/docs/remote_services/webdav_synology_webdav_server/README.md new file mode 100644 index 0000000..cb101e3 --- /dev/null +++ b/docs/remote_services/webdav_synology_webdav_server/README.md @@ -0,0 +1,55 @@ +# Synology Webdav Server + +English | [中文](./README.zh-cn.md) + +## Link + + + +## Attention + +The tutorial author (the author of Remotely Save) is NOT an expert of NAS / Synology. Please read the doc carefully and change it to accommodate your needs by yourself. + +**It's dangerous to expose your NAS into public Internet if you don't know how to set up firewalls and other protections.** + +## Steps + +Synology DSM 7 is used in this tutorial. + +1. Create a new shared folder if you don't have one. For this tutorial, a new shared folder `share2` is created. You should assing a proper user to read / write the shared folder. + ![](./synology_create_shared_folder.png) + +2. Assuming you want to sync your vault into sub folder `哈哈哈/sub folder`, please create the sub folder(s) correspondingly inide the shared folder `share2`. + +3. Install webdav server from package center. + ![](./synology_install_webdav_server.png) + +4. Enter the webdav server settings. + +5. If you know how to configure https certificates correctly, you are strongly recommend to enable https. + + For the demonstration purpose, this tutorial enable http server for the later steps. + + Also "Enable DavDepthInfinity", which could speed up the plugin runnings greatly. + + "Apply". + + ![](./synology_webdav_server_settings.png) + +6. In Remotely Save settings, you should input your address as: + + `http(s):////` + + For example, in the tutorial, the proper url should be: + + `http:///share2/哈哈哈/sub folder` + + Username and password should be the user you configured before with read / write permissions to `share2`. + + Depth header should be "supports depth="infinity"". + + Check connectivity! + + ![](./synology_remotely_save_settings.png) + +7. Sync! diff --git a/docs/remote_services/webdav_synology_webdav_server/README.zh-cn.md b/docs/remote_services/webdav_synology_webdav_server/README.zh-cn.md new file mode 100644 index 0000000..931efb5 --- /dev/null +++ b/docs/remote_services/webdav_synology_webdav_server/README.zh-cn.md @@ -0,0 +1,56 @@ +# 群晖 Webdav Server + +[English](./README.md) | 中文 + +## 链接 + + + +## 注意 + +教程作者(Remotely Save 作者)**不是** NAS、群晖专家。请仔细阅读文档,并自行改动以适应您自身需求。 + +**没有设置防火墙和其他保护措施的话,将 NAS 暴露到公网上非常危险。** + +## 步骤 + +本教程有用到群晖 DSM 7。 + +1. 创建共享文件夹。本教程示例创建了 `share2`。你需要允许某个账号对此的读写权限。 + + ![](./synology_create_shared_folder.png) + +2. 假设之后你想同步你的库到子文件夹,`哈哈哈/sub folder`,请先在共享文件夹 `share2` 底下创建好。 + +3. 从套件中心安装 webdav server 。 + ![](./synology_install_webdav_server.png) + +4. 进入 webdav server 设置。 + +5. 如果你知道如何正确配置 https 证书的话,强烈建议开启 https。 + + 本教程简化示例,开启了 http。 + + 也设置“Enable DavDepthInfinity”,这可以加速插件连接速度。 + + “Apply”。 + + ![](./synology_webdav_server_settings.png) + +6. 在 Remotely Save 设置页,你的地址应如下格式输入: + + `http(s):////` + + 比如说,本教程里,正确的地址类似于: + + `http:///share2/哈哈哈/sub folder` + + 用户名和密码是你之前配置了允许读写 `share2` 的那个账号。 + + Depth 设置应为“supports depth="infinity"”。 + + 检查连接! + + ![](./synology_remotely_save_settings.png) + +7. 同步! diff --git a/docs/remote_services/webdav_synology_webdav_server/synology_create_shared_folder.png b/docs/remote_services/webdav_synology_webdav_server/synology_create_shared_folder.png new file mode 100644 index 0000000..715d09b --- /dev/null +++ b/docs/remote_services/webdav_synology_webdav_server/synology_create_shared_folder.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:71e61c25db793c00d4406ea0f46745941e16e268a41b7328b03a183ab0706ec8 +size 59700 diff --git a/docs/remote_services/webdav_synology_webdav_server/synology_install_webdav_server.png b/docs/remote_services/webdav_synology_webdav_server/synology_install_webdav_server.png new file mode 100644 index 0000000..9e3d770 --- /dev/null +++ b/docs/remote_services/webdav_synology_webdav_server/synology_install_webdav_server.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0f0725099989b5496048c0e3cb284b4f6537d66866b4618c8e73ee758cb2b642 +size 174986 diff --git a/docs/remote_services/webdav_synology_webdav_server/synology_remotely_save_settings.png b/docs/remote_services/webdav_synology_webdav_server/synology_remotely_save_settings.png new file mode 100644 index 0000000..889eb2c --- /dev/null +++ b/docs/remote_services/webdav_synology_webdav_server/synology_remotely_save_settings.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7bc6d03a9deb0e8babd2ed102e7b85ee1062797abf1146ae71f80237a852ff10 +size 522084 diff --git a/docs/remote_services/webdav_synology_webdav_server/synology_webdav_server_settings.png b/docs/remote_services/webdav_synology_webdav_server/synology_webdav_server_settings.png new file mode 100644 index 0000000..d571ed8 --- /dev/null +++ b/docs/remote_services/webdav_synology_webdav_server/synology_webdav_server_settings.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ba3781f24b5d65ee6915d496f7542c569116141cdced24ca505f4373d9efa9df +size 536163