{"id":382,"date":"2022-07-09T14:48:38","date_gmt":"2022-07-09T06:48:38","guid":{"rendered":"https:\/\/fugary.com\/?p=382"},"modified":"2022-07-10T10:32:05","modified_gmt":"2022-07-10T02:32:05","slug":"%e7%be%a4%e6%99%96nas%e9%85%8d%e7%bd%ae%e9%98%bf%e9%87%8c%e4%ba%91%e7%9b%98%e5%90%8c%e6%ad%a5%ef%bc%88%e6%96%b0%ef%bc%89","status":"publish","type":"post","link":"https:\/\/fugary.com\/?p=382","title":{"rendered":"\u7fa4\u6656NAS\u914d\u7f6e\u963f\u91cc\u4e91\u76d8\u540c\u6b65\uff08\u65b0\uff09"},"content":{"rendered":"<p><strong>\u6700\u65b0\uff1a\u4ee5\u524d\u7248\u672c<code>zx5253\/webdav-aliyundriver<\/code>\u5df2\u7ecf\u4e0d\u53ef\u7528\u4e86\uff0c\u4f7f\u7528\u65b0\u7248<code>messense\/aliyundrive-webdav<\/code>\uff0c\u76f8\u5173\u73af\u5883\u53d8\u91cf\u540d\u79f0\u6709\u53d8\u5316\uff0c\u5176\u4ed6\u51e0\u4e4e\u4e00\u6837<\/strong><\/p>\n<p>WebDAV \uff08Web-based Distributed Authoring and Versioning\uff09 \u4e00\u79cd\u57fa\u4e8e HTTP 1.1\u534f\u8bae\u7684\u901a\u4fe1\u534f\u8bae\u3002\u5b83\u6269\u5c55\u4e86HTTP 1.1\uff0c\u5728GET\u3001POST\u3001HEAD\u7b49\u51e0\u4e2aHTTP\u6807\u51c6\u65b9\u6cd5\u4ee5\u5916\u6dfb\u52a0\u4e86\u4e00\u4e9b\u65b0\u7684\u65b9\u6cd5\uff0c\u4f7f\u5e94\u7528\u7a0b\u5e8f\u53ef\u5bf9Web Server\u76f4\u63a5\u8bfb\u5199\uff0c\u5e76\u652f\u6301\u5199\u6587\u4ef6\u9501\u5b9a(Locking)\u53ca\u89e3\u9501(Unlock)\uff0c\u8fd8\u53ef\u4ee5\u652f\u6301\u6587\u4ef6\u7684\u7248\u672c\u63a7\u5236\u3002<\/p>\n<p>\u7fa4\u6656NAS\u652f\u6301WebDAV\u540c\u6b65\uff0c\u53ef\u4ee5\u5728\u7fa4\u6656\u4e2d\u914d\u7f6eCloud Sync\u4e86\u3002<\/p>\n<h3>\u5b89\u88c5Docker\u548cCloud Sync<\/h3>\n<p>\u4e00\u822c\u4f7f\u7528\u7fa4\u6656NAS\uff0cDocker\u548cCloud Sync\u8fd9\u4e24\u4e2a\u57fa\u672c\u662f\u5fc5\u88c5\u7684\u9879\u76ee\u3002<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic1\/-\/raw\/master\/images\/20210813170412.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic1\/-\/raw\/master\/images\/20210813170412.png\" alt=\"image-20210813170406106\" \/><\/div><\/p>\n<p>\u5982\u679c\u6ca1\u6709\u5b89\u88c5\uff0c\u53ef\u4ee5\u5728\u5957\u4ef6\u4e2d\u5fc3\u627e\u5230\u5b89\u88c5\u5373\u53ef\u3002<\/p>\n<h3>\u83b7\u53d6refresh_token<\/h3>\n<p>\u83b7\u53d6\u767b\u5f55\u963f\u91cc\u4e91\u76d8\u7684<code>refresh_token<\/code>\uff0c\u8fd9\u4e2aToken\u662f\u767b\u5f55\u963f\u91cc\u4e91\u76d8\u540e\u81ea\u52a8\u751f\u6210\uff0c\u53ef\u4ee5\u5728<code>localStorage<\/code>\u4e2d\u83b7\u53d6\u5230\uff0c<code>Chrome<\/code>\u6d4f\u89c8\u5668\u4e2d\u6bd4\u8f83\u65b9\u4fbf\u83b7\u53d6\u3002<\/p>\n<p>\u5148\u767b\u5f55\u963f\u91cc\u4e91\u76d8\uff1a<a href=\"https:\/\/www.aliyundrive.com\/drive\">https:\/\/www.aliyundrive.com\/drive<\/a><\/p>\n<p><code>Chrome<\/code>\u767b\u5f55\u540e\u6309<code>F12<\/code>\u6253\u5f00\u5f00\u53d1\u8005\u5de5\u5177\uff0c\u7136\u540e\u5728<code>Application<\/code>\u6807\u7b7e\u4e0b\u627e\u5c31\u53ef\u4ee5\u627e\u5230<code>Local Storage<\/code>\u3002<\/p>\n<p>\u83b7\u53d6<code>refresh_token<\/code>\uff1a<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic1\/-\/raw\/master\/images\/20210813170816.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic1\/-\/raw\/master\/images\/20210813170816.png\" alt=\"image-20210813170816545\" \/><\/div><\/p>\n<h3>\u5b89\u88c5\u548c\u914d\u7f6ealiyundrive-webdav<\/h3>\n<p>\u9996\u5148\u6253\u5f00<code>Docker<\/code>\u5957\u4ef6\uff0c\u7136\u540e\u5728\u6ce8\u518c\u8868\u4e2d\u641c\u7d22<code>messense\/aliyundrive-webdav<\/code>\uff0c\u7136\u540e\u53cc\u51fb\u5b89\u88c5\u3002<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/8dc0d37fadb5cb4a5216c305525071a3\/image-20220709143159775.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/8dc0d37fadb5cb4a5216c305525071a3\/image-20220709143159775.png\" alt=\"image-20220709143159775\" \/><\/div><\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u4e4b\u540e\u5c31\u53ef\u4ee5\u914d\u7f6e\u542f\u52a8\u4e86\uff0c\u5728\u3010\u6620\u50cf\u3011\u4e2d\u9009\u4e2d<code>messense\/aliyundrive-webdav<\/code>\u7136\u540e\u70b9\u3010\u542f\u52a8\u3011<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/8cb89065cb23400aa60f9cbdf73e2229\/image-20220709143332774.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/8cb89065cb23400aa60f9cbdf73e2229\/image-20220709143332774.png\" alt=\"image-20220709143332774\" \/><\/div><\/p>\n<p>\u7136\u540e\u5728\u3010\u9ad8\u7ea7\u8bbe\u7f6e\u3011\u4e2d\u914d\u7f6e\u3002<\/p>\n<p><strong>\u8fdb\u5165\u9ad8\u7ea7\u914d\u7f6e\u73af\u5883\u53d8\u91cf\uff0c\u6bd4\u8f83\u91cd\u8981<\/strong><\/p>\n<p>\u914d\u7f6e\u542f\u52a8\u5bb9\u5668\u7684\u53c2\u6570\uff1a<\/p>\n<ol>\n<li>\u914d\u7f6erefresh_token\n<ol>\n<li>\u524d\u9762\u5df2\u7ecf\u83b7\u53d6\u5230\u4e86refresh_token<\/li>\n<li>\u53ef\u53d8\uff1aREFRESH_TOKEN \u503c\uff1a\u586b\u5165refresh_token\u7684\u503c<\/li>\n<\/ol>\n<\/li>\n<li>\u8bbe\u7f6eWebDAV\u767b\u5f55\u540d\n<ol>\n<li>\u53ef\u53d8\uff1aWEBDAV_AUTH_USER \u503c\uff1a\u8f93\u5165\u4f60\u8981\u8bbe\u7f6e\u7684\u7528\u6237\u540d\uff08\u9ed8\u8ba4\u4e3aadmin\uff0c\u6839\u636e\u9700\u8981\u4fee\u6539\uff09<\/li>\n<\/ol>\n<\/li>\n<li>\u8bbe\u7f6eWebDav\u767b\u5f55\u5bc6\u7801\uff08\u8fd9\u4e2a\u662f\u5bb9\u5668\u4f7f\u7528\u7684\u5bc6\u7801\u548c\u963f\u91cc\u4e91\u76d8\u767b\u5f55\u5bc6\u7801\u6ca1\u6709\u4efb\u4f55\u5173\u7cfb\uff09\n<ol>\n<li>\u53ef\u53d8\uff1aWEBDAV_AUTH_PASSWORD\u503c\uff1a\u8f93\u5165\u4f60\u8981\u8bbe\u7f6e\u7684\u5bc6\u7801\uff08\u9ed8\u8ba4\u4e3aadmin\uff0c\u5efa\u8bae\u4e00\u5b9a\u8981\u4fee\u6539\uff09<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p>\u5176\u4ed6\u53c2\u6570\u4fdd\u6301\u539f\u6837\u5373\u53ef<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/9dc0b47c5e6bd28359fc1e89b8b30cb9\/image-20220709143635066.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/9dc0b47c5e6bd28359fc1e89b8b30cb9\/image-20220709143635066.png\" alt=\"image-20220709143635066\" \/><\/div><\/p>\n<p>\u914d\u7f6e\u7aef\u53e3\uff0c\u672c\u5730\u7aef\u53e3\u81ea\u5b9a\u4e49\uff0c\u5bb9\u5668\u7aef\u53e3\u56fa\u5b9a<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/fb6567138491afc63c587c50a2e599f3\/image-20220709143944973.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/fb6567138491afc63c587c50a2e599f3\/image-20220709143944973.png\" alt=\"image-20220709143944973\" \/><\/div><\/p>\n<p>\u7136\u540e\u914d\u7f6e\u5b58\u50a8\u7a7a\u95f4\uff0c\u8fd9\u4e2a\u4e3b\u8981\u662f\u5b58\u653e\u4e00\u4e9b\u914d\u7f6e\u6587\u4ef6\uff0c\u5efa\u8bae\u672c\u5730\u653e\u5230<code>\/docker\/aliyun-driver<\/code>\u4e0b\uff0c\u88c5\u8f7d\u8def\u5f84\u5fc5\u987b\u662f<code>\/etc\/aliyundrive-webdav\/<\/code>\uff1a<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/a91765db9078cba23cfc1d851afdb534\/image-20220709144213145.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/a91765db9078cba23cfc1d851afdb534\/image-20220709144213145.png\" alt=\"image-20220709144213145\" \/><\/div><\/p>\n<p>\u7136\u540e\u70b9\u51fb\u5e94\u7528\u6267\u884c\u5b8c\u6210\u3002<\/p>\n<p>\u53ef\u4ee5\u5728\u5bb9\u5668\u4e0b\u770b\u5230\u5bb9\u5668\u5df2\u7ecf\u6b63\u5e38\u542f\u52a8\u4e86\u3002<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/59c9267756f1916f499d2b710d30544e\/image-20220709144523411.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/\/fugary\/blogpic\/uploads\/59c9267756f1916f499d2b710d30544e\/image-20220709144523411.png\" alt=\"image-20220709144523411\" \/><\/div><\/p>\n<h3>\u914d\u7f6eCloud Sync\u540c\u6b65<\/h3>\n<p><code>webdav-aliyundriver<\/code>\u542f\u52a8\u597d\u4e4b\u540e\u5c31\u76d1\u542c\u672c\u5730\u7684\u7aef\u53e3\uff08\u521a\u624d\u914d\u7f6e\u7684\u65f6\u5019\u81ea\u5b9a\u4e49\u7684\uff0c\u59828999\uff09\uff0c\u7136\u540e\u53ef\u4ee5\u914d\u7f6eCloud Sync\u4e86\u3002<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic1\/-\/raw\/master\/images\/20210813172743.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic1\/-\/raw\/master\/images\/20210813172743.png\" alt=\"image-20210813172743676\" \/><\/div><\/p>\n<p>\u914d\u7f6eWebDAV\u4fe1\u606f\uff1a<\/p>\n<p>\u9700\u8981\u586b\u5165\u5730\u5740<code>http:\/\/localhost:8999<\/code>\uff08\u7aef\u53e3\u662f\u81ea\u5b9a\u4e49\u7684\uff09\uff0c\u7528\u6237\u540d\u548c\u5bc6\u7801\uff08\u90fd\u662f\u5728docker\u914d\u7f6e\u7684\u65f6\u5019\u5b9a\u4e49\u7684\uff09<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic1\/-\/raw\/master\/images\/20210813172830.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic1\/-\/raw\/master\/images\/20210813172830.png\" alt=\"image-20210813172830632\" \/><\/div><\/p>\n<p>\u7136\u540e\u4e0b\u4e00\u6b65\uff0c\u914d\u7f6e\u672c\u5730\u7684\u8def\u5f84\u4ee5\u53ca\u963f\u91cc\u4e91\u76d8\u7684\u8fdc\u7a0b\u5730\u5740\uff0c\u6587\u4ef6\u5939\u540d\u5b57\u548c\u8def\u5f84\u81ea\u5df1\u5b9a\u4e49\u597d\u5c31\u53ef\u4ee5\u4e86\uff1a<\/p>\n<p><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic1\/-\/raw\/master\/images\/20210813173039.png'><img src=\"https:\/\/git.mengqingpo.com:8888\/fugary\/blogpic1\/-\/raw\/master\/images\/20210813173039.png\" alt=\"image-20210813173039802\" \/><\/div><\/p>\n<p>\u914d\u7f6e\u5b8c\u6210\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u4e0a\u4f20\u4e00\u4e2a\u6587\u4ef6\u6d4b\u8bd5\u4e00\u4e0b\uff0c\u53ef\u4ee5\u770b\u5230\u6587\u4ef6\u6b63\u5e38\u540c\u6b65\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u65b0\uff1a\u4ee5\u524d\u7248\u672czx5253\/webdav-aliyundriver\u5df2\u7ecf\u4e0d\u53ef\u7528\u4e86\uff0c\u4f7f\u7528\u65b0\u7248messense\/al [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[25],"tags":[74,31,41],"_links":{"self":[{"href":"https:\/\/fugary.com\/index.php?rest_route=\/wp\/v2\/posts\/382"}],"collection":[{"href":"https:\/\/fugary.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fugary.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fugary.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fugary.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=382"}],"version-history":[{"count":2,"href":"https:\/\/fugary.com\/index.php?rest_route=\/wp\/v2\/posts\/382\/revisions"}],"predecessor-version":[{"id":387,"href":"https:\/\/fugary.com\/index.php?rest_route=\/wp\/v2\/posts\/382\/revisions\/387"}],"wp:attachment":[{"href":"https:\/\/fugary.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=382"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fugary.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=382"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fugary.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=382"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}