{"id":1778,"date":"2023-03-08T02:50:00","date_gmt":"2023-03-08T02:50:00","guid":{"rendered":"https:\/\/summersnow.eu.org\/?p=1778"},"modified":"2023-03-08T02:50:00","modified_gmt":"2023-03-08T02:50:00","slug":"cloudflare-workers-kv-deploys-onepoint-to-mount-onedrive-with-rclone","status":"publish","type":"post","link":"https:\/\/summersnow.eu.org\/?p=1778","title":{"rendered":"Cloudflare Workers + KV Deploys OnePoint to Mount OneDrive with Rclone"},"content":{"rendered":"\n<p>Two blog posts in 2020 mentioned the process of registration of free German VPS EUserv and its configuration, installation of YukiDrive and mounting of OneDrive. But good times don\u2019t last long. From December 2022, the renewal rules of German free VPS EUserv have been revised. Originally, only one free manual renewal was required per month, but now you need to pay 2 euros for a one-time installation. At the same time, you must pay at least 10 euros at a time with an international credit card. You can make a free manual renewal after payment. This is considered to be a fee. In my opinion, we need to look for a free VPS continuously. Considering the issue of E5 account renewal, I\u2019d like to call APIs to mount OneDrive continuously.<\/p>\n\n\n\n<p>I found one blog post named \u201c<a href=\"https:\/\/www.daniao.org\/14295.html\" target=\"_blank\" rel=\"noreferrer noopener\">Cloudflare Workers +kv\u90e8\u7f72OnePoint \u2013 \u4e00\u4e2a\u8f7b\u91cf\u7ea7\u3001\u591a\u5e73\u53f0\u3001\u591a\u7f51\u76d8\u7684\u6587\u4ef6\u76ee\u5f55\u7d22\u5f15\u7a0b\u5e8f<\/a>\u201d on&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/www.daniao.org\/\" target=\"_blank\">Daniao Blog<\/a>&nbsp;which briefly introduced how to use Cloudflare Workers + KV to deploy OnePoint, and I followed the steps to successfully complete the deployment. OnePoint is a lightweight, multi-platform, multi-net disk file directory index (and management) tool. Support cloud disk OneDrive, GoogleDrive, Coding, Teambition, Node_fs, AliDrive, etc.<\/p>\n\n\n\n<p>However, this method is currently unable to mount AliDrive, so I would try to mount OneDrive. After searching the Internet for a period of time, I found that there is no detailed guide. I tried to operate it on the OnePoint management page, but when I needed to obtain the refresh_token in one step, the link given by the program was invalid. How to do it?<\/p>\n\n\n\n<p>Finally, I found the following blog post named \u201c<a rel=\"noreferrer noopener\" href=\"http:\/\/blog.51sec.org\/2022\/05\/onepoint-use-cloudflare-workers-kv-to.html\" target=\"_blank\">Use Cloudflare Workers with Rclone to Deploy a Cloud Drive Index &amp; List App \u2013 OnePoint<\/a>\u201d. Inspired by the above blog post, you can use Rclone to manually obtain the refresh-token of OneDrive. I continued to refer to the blog post \u201c<a href=\"https:\/\/p3terx.com\/archives\/rclone-connect-onedrive-with-selfbuilt-api.html\" target=\"_blank\" rel=\"noreferrer noopener\">Rclone\u8fdb\u9636\u4f7f\u7528\u6559\u7a0b \u2013 \u81ea\u5efa\u79c1\u6709API\u6302\u8f7dOneDrive<\/a>\u201d and successfully obtained the refresh-token.<\/p>\n\n\n\n<p>My OneDrive File List:<\/p>\n\n\n\n<p>\u9752\u6625\u8def\u4e0a\u7684\u6587\u6863\u5907\u4efd<\/p>\n\n\n\n<p><a href=\"https:\/\/divine-flower-6ea4.summersnow.workers.dev\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/divine-flower-6ea4.summersnow.workers.dev\/<\/a><\/p>\n\n\n\n<p>Links to the original text of the two blog posts in 2020:<\/p>\n\n\n\n<p><a href=\"https:\/\/summersnow.eu.org\/2020\/08\/25\/building-yukidrive-on-germany-permanent-free-vps-euserv\/\" data-type=\"URL\" data-id=\"https:\/\/summersnow.eu.org\/2020\/08\/25\/building-yukidrive-on-germany-permanent-free-vps-euserv\/\" target=\"_blank\" rel=\"noreferrer noopener\">Building YukiDrive on Germany Permanent Free VPS EUserv<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/summersnow.eu.org\/2020\/08\/25\/application-and-configuration-on-germany-permanent-free-vps-euserv\/\" data-type=\"URL\" data-id=\"https:\/\/summersnow.eu.org\/2020\/08\/25\/application-and-configuration-on-germany-permanent-free-vps-euserv\/\" target=\"_blank\" rel=\"noreferrer noopener\">Application and Configuration on Germany Permanent Free VPS EUserv<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Two blog posts in 2020 mentioned the process of registr &#8230;.&nbsp;&nbsp;<a class=\" special\" href=\"https:\/\/summersnow.eu.org\/?p=1778\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[121,61,119,120],"class_list":["post-1778","post","type-post","status-publish","format-standard","hentry","category-internet","tag-free-vps-2","tag-onedrive","tag-onepoint","tag-rclone"],"views":529,"_links":{"self":[{"href":"https:\/\/summersnow.eu.org\/index.php?rest_route=\/wp\/v2\/posts\/1778","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/summersnow.eu.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/summersnow.eu.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/summersnow.eu.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/summersnow.eu.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1778"}],"version-history":[{"count":1,"href":"https:\/\/summersnow.eu.org\/index.php?rest_route=\/wp\/v2\/posts\/1778\/revisions"}],"predecessor-version":[{"id":1779,"href":"https:\/\/summersnow.eu.org\/index.php?rest_route=\/wp\/v2\/posts\/1778\/revisions\/1779"}],"wp:attachment":[{"href":"https:\/\/summersnow.eu.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1778"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/summersnow.eu.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1778"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/summersnow.eu.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1778"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}