Cloudreve魔改版挂载SharePoint教程及小工具

项目简介

Cloudreve是一款比较优秀的网盘程序,个人感觉他在国内的普及度已经超越了owncloud之类的程序,并且大家方便同时可以挂在各种存储,如onedrive、七牛等等。不过原版的不能挂在SharePoint,这是一大遗憾,毕竟白嫖的SharePoint要比onedrive要容易的多。这里有位大佬魔改了一个版本,可以顺利挂在SharePoint。
源码:
前端:https://github.com/moeYuiYui/Cloudreve-frontend
后端:https://github.com/moeYuiYui/Cloudreve
编译参考作者文档,需要将前端克隆到后端的assets文件夹里。

编译好的支持sharepoint的程序:
https://github.com/moeYuiYui/Cloudreve/releases/download/3.1.1/cloudreve_sp_3.1.1_linux_amd64.tar.gz
https://github.com/moeYuiYui/Cloudreve/releases/download/3.1.1/cloudreve_sp_3.1.1_windows_amd64.zip

《Cloudreve魔改版挂载SharePoint教程及小工具》

简单教程

其实可以搜索一下本站的教程,那里有详细的教程,这里的魔改版本实际上是一样的。

先正常搭建Cloudreve,搭建cloudreve的教程我就省略了。
需要教程的话:https://docs.cloudreve.org/ 这里有作者详细的搭建教程
首先需要获取你sharepoint网站的siteid,比较方便的是搭建一次onemanage,或者搭建oneindex-j获取。
这里推荐onemanage,用onemanage添加sharepoint之后,在onemanage网站根目录的config.php里就有你的siteid。
搭建好后去后台存储策略添加onedrive。(如果是TJ需要空全局或者有能进AAD注册应用的子号)

3.2.0出来有一段时间了,应该没有太大的BUG了。
顺手修复了OD策略回调失败的BUG。
linux:
https://github.com/moeYuiYui/Cloudreve/releases/download/3.2.0/cloudreve_sp_3.2.0_linux_amd64.tar.gz
windows:
https://github.com/moeYuiYui/Cloudreve/releases/download/3.2.0/cloudreve_sp_3.2.0_windows_amd64.zip
源码:
前端:https://github.com/moeYuiYui/Cloudreve-frontend
后端:https://github.com/moeYuiYui/Cloudreve
编译参考作者文档,需要将前端克隆到后端的assets文件夹里。
《Cloudreve魔改版挂载SharePoint教程及小工具》

《Cloudreve魔改版挂载SharePoint教程及小工具》

《Cloudreve魔改版挂载SharePoint教程及小工具》

改好后
SJHL应该是这样 “https://microsoftgraph.chinacloudapi.cn/v1.0/sites/{siteid}”
国际版是这样的  “https://graph.microsoft.com/v1.0/sites/{siteid}”
{siteid}替换为自己的siteid
siteid 是这样的一整串 “mjjuniversity.sharepoint.cn,cea1a91b-q3b1-6j1a-3f6w-q6roroa1t163,fa16w61w-63a1-6q61-kh76-612f13a99d1e”
所以改好是这样 “https://microsoftgraph.chinacloudapi.cn/v1.0/sites/mjjuniversity.sharepoint.cn,cea1a91b-q3b1-6j1a-3f6w-q6roroa1t163,fa16w61w-63a1-6q61-kh76-612f13a99d1e” 
如果你要保留你的od策略,就继续用同样的应用id和密钥添加一个新的od策略来改成sp。

一键安装cloudreve+aria2脚本

下载地址:https://cloudmjj.xyz/#/s/50uq

tar -xzf cloudraria2.tar.gz
cd cloudaria2
./install.sh

等待脚本运行完毕
默认的用户名密码在cloudaria2/cloudreve.log里
安装位置
Cloudreve
/usr/local/cloudreve
Aria2
/usr/local/aria2

systemctl start cloudreve     #开启cloudreve
systemctl stop cloudreve     #关闭cloudreve
systemctl start aria2         #开启aria2
systemctl stop aria2         #关闭aria2

卸载的话运行uninstall.sh
这个脚本安装的是原作者编译的版本,使用sharepoint需要用我编译的程序去替换一下
要使用sharepoint记得先关闭cloudreve然后去/usr/local/cloudreve里替换cloudreve程序并删除cloudreve.db,然后重新运行一下./cloudreve获取帐号密码
然后再运行systemctl start cloudreve
如果你没有删除数据库直接替换了cloudreve并且使用的od策略需要去把所有od策略的Server最后的/v1.0改成/v1.0/me

cloudreve的离线下载设置

《Cloudreve魔改版挂载SharePoint教程及小工具》

SiteID获取小工具

https://github.com/moeYuiYui/Cloudreve/releases/download/3.2.0/siteid.tar.gz

直接丢到SSH里面运行即可

wget https://github.com/moeYuiYui/Cloudreve/releases/download/3.2.0/siteid.tar.gz
tar -xzf siteid.tar.gz
./siteid

win的版本需要自己编译,这个是linux版本的。

原帖地址

https://hostloc.com/thread-745894-1-1.html

发表回复