ukuq / onepoint Goto Github PK
View Code? Open in Web Editor NEWA simple virtual drive based on many complex drives
License: MIT License
A simple virtual drive based on many complex drives
License: MIT License
环境是用CloudFlare的 Workers 构建、构建一切顺利,但测试的时候出现视频播放失败。
是不是太大的视频无法加载还是什么情况、三四百M的视频文件偶尔可以播放,但超过五六百M的或者1G以上的就不行的。挂梯子也不行
麻烦问下大佬这是什么情况?是属于正常情况吗?
你好,我想问下支持世纪互联版的onedrive吗?还有用cloudflare可以搭建吗
flv、mkv等视频文件如果能够预览就更好了。
mkv的转码也许可以参考 https://github.com/Xhofe/alist
现在部署到cf不知道为什么突然流量不够了,访问不到,可以部署到VPS上,出一集宝塔教程。
OnePoint 可以通过调用 API 以续期 E5 吗? OneIndex 和 OneManager 网上都有教程,OnePoint 的没找到。
网页上传文件到网盘?
sharepoint使用中文名称的文件夹 不能正常访问
映射路径如果使用中文也无法访问
请教大佬,使用世纪互联版的SharePoint应该如何绑定呢?
文件和文件夹混在一起比较难以查找文件。
onedrive 中 使用 share_url 配置的打不开,DemoSite中的也是
都会提示
{ "error": "ModuleError", "data": { "msg": "This sharing link has been canceled" }, "message": "模块内部发生了错误,This sharing link has been canceled" }
我用的是 cf workers 版本。
在 admin 帐户登录之后,点 “更多设置” -> “密码设置” -> “修改密码”,输入旧密码和新密码,确定后显示 "success"。然后 Logout 重登,新密码无效,还是要用默认的 admin 密码才行。
请问怎么设置 admin 密码,还有能建立除了 admin 之外的其他用户吗?
npm和pm2安装正常,输入npm,pm2有反应
cd onepoint-master/
npm install
(>前加了括号(),不加括号的话>会自动显示成竖线)
() > [email protected] postinstall /root/onepoint-master/node_modules/fast-xml-parser
() > node tasks/postinstall.js || exit 0
internal/modules/cjs/loader.js:965
throw err;
^
Error: Cannot find module '/root/onepoint-master/node_modules/fast-xml-parser/tasks/postinstall.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:962:15)
at Function.Module._load (internal/modules/cjs/loader.js:838:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
added 8 packages from 16 contributors and audited 8 packages in 0.741s
found 0 vulnerabilities
debian9/ ubuntu18都是这样
我想要使用我自己注册的应用,来挂载onedrive ,请问重定向uri或其它什么选项有特殊的要求吗?
官方网页端完全就像公开API一样呀。
refresh_token保存在localstorage,和onedrive一样可以无限获取access_token
post
https://websv.aliyundrive.com/token/refresh {RefreshToken: RefreshToken}
目前还不限速,完美
root@HK1:/usr/sju/onepoint# npm start
[email protected] start /usr/sju/onepoint
node lib/starters/node-http.js
Running on linux, port:8020
http://10.0.0.4:8020
http://127.0.0.1:8020
(node:24801) UnhandledPromiseRejectionWarning: TypeError: process.hrtime.bigint is not a function
at Server.handleRequest (/usr/sju/onepoint/lib/starters/node-http.js:47:30)
at emitTwo (events.js:126:13)
at Server.emit (events.js:214:7)
at parserOnIncoming (_http_server.js:619:12)
at HTTPParser.parserOnHeadersComplete (_http_common.js:115:23)
(node:24801) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:24801) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
错误信息:
The refresh token has expired due to inactivity. The token was issued on 2020-03-26T09:49:28.6831892Z and was inactive for 90.00:00:00."error_codes":[700082]
尝试重新生成 token 登陆时的错误信息:
AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application: '72f58ae2-35b3-49a0-bfdf-93c293711a3f'.
看起来是过期了,希望能够解决🤣
onepoint配置工具
[映射路径:/ ][云盘密码:空 ][模块类型:onedrive_garph]
[根路径(root):空 ][ 认证类型:1 ][ 获取令牌:世纪互联读写 ]
访问ip:8020后显示
{"error":"invalid_grant","error_description":"AADSTS9002313: Invalid request. Request is malformed or invalid
...,"error_codes":[9002313]
"error_uri":"https://login.partner.microsoftonline.cn/error?code=9002313"
点开这个网址显示
Error Code | 9002313
Message | Invalid request. Request is malformed or invalid.
Remediation | Developer error - the app is attempting to sign in without the necessary or correct authentication parameters.
是什么问题呢,我该如何做?
在根目录放置了favicon.ico文件,js文件中也填了。但是网站还是不显示图标。目前我试过icon: "./favicon.ico",和icon: "favicon.ico",都不行。
填入的阿里云盘RefreshToken,隔段时间就会过期,需要手动再去填一次新的,能否定期自动刷新呢?
大佬,密码忘记了,如何重置
package.json中的版本仍是"onepoint": "^1.3.4" ,未添加隐藏文件支持
请教下作者,这个更新的话,复制代码粘贴原来的吗
下面这些功能不再提供支持,请勿提交相关 issue
特殊字符
?&#%,小众需求,处理这些字符比较繁琐,建议避开这些字符
如果实在需要,可以自行对 path 中的这些字符进行 encodeURIComponent 操作,但后端不保证所有的模块都能成功解析该字符
proxy 代理下载功能
该功能属于小众需求,且与 op 自身联系不大,可由前端实现,后端不再支持
静态网页视频字幕
静态网页不再支持字幕功能,如果需要,请自己编写前端代码或者修改静态网页
系统分页功能
感觉没什么必要了,只保留模块分页
缩略图
会省流量,但目前不考虑支持
配置文件里有设置管理员账号密码,但找了半天没看到教程里说从哪里进管理界面?是我眼瞎了?
我阅读了代码,发现好像这个程序是能够预览office 文件的,但是实际情况下却显示无法预览。是不是判断文件类型的地方写错了?(我不是做javascript,所以也没怎么了解,直觉而已)
另外,这个项目用来预览视频和音乐的播放器应该是dplayer吧,这个播放器是支持很多格式的,但是这个项目里仍然没有将他们的文件类型正确判断,导致无法进行预览。
举个例子: rmvb
dplayer是支持这个格式的,但是在你的程序中仍然无法预览。
rt:
之前给goindex写了段类似的代码
let list = await gd.list(path);
if (authConfig.hidden !=undefined && authConfig.hidden != null && authConfig.hidden != ""){
if (path=="/"){
let i;
for (i in list.files){
if (list.files[i].name==authConfig.hidden)
{break}
}
list.files.splice(i,1);
}
}
return new Response(JSON.stringify(list),option);
可以实现从配置文件中获取目录名,然后从返回结果去剔除,来实现隐藏文件夹
提交修改密码后会提示success,然后KV里面的users:admins的密码没有改变.
并且我无法更改我的用户名,目前推测用户名键值是直接查找admin所导致的
https://www.onesrc.cn/p/how-to-deploy-onepoint-on-linux.html
如何在 linux 上部署 onepoint
按照这篇文章安装的。centos7
安装nodejs
mkdir -p /usr/local/lib/nodejs
wget https://nodejs.org/dist/v13.14.0/node-v13.14.0-linux-x64.tar.xz
tar -xJvf node-v13.14.0-linux-x64.tar.xz -C /usr/local/lib/nodejs
ln -sf /usr/local/lib/nodejs/node-v13.14.0-linux-x64/bin/node /usr/local/bin/
ln -sf /usr/local/lib/nodejs/node-v13.14.0-linux-x64/bin/npm /usr/local/bin/
ln -sf /usr/local/lib/nodejs/node-v13.14.0-linux-x64/bin/npx /usr/local/bin/
安装成功,输入命令有效
安装pm2
npm install -g pm2
ln -s /usr/local/lib/nodejs/node-v13.14.0-linux-x64/bin/pm2 /usr/local/bin/pm2
安装成功,输入命令有效
下载源码
yum install unzip -y
wget https://github.com/ukuq/onepoint/archive/master.zip
unzip master.zip
cd onepoint-master/
npm install
运行
iptables -I INPUT -m state --state NEW -m tcp -p tcp --dport 8020 -j ACCEPT
iptables -I INPUT -m state --state NEW -m udp -p udp --dport 8020 -j ACCEPT
pm2 start bin/index_node.js
输入后pm2有显示一个表格的东西
然后打开http://vps的ip,没有显示任何东西,无法访问此网站。
我需要去修改默认的config.json才能正常打开么?
求指点该如何操作
部署完毕后,点开其中一个映射目录,出现如下代码:
{"errorCode":-1,"errorMessage":"user code exception caught","stackTrace":"Cannot read property 'password' of undefined\nTypeError: Cannot read property 'password' of undefined\n at handleEvent (/var/user/bin/main.js:197:19)\n at OnePoint.handleEvent (/var/user/bin/main.js:43:22)\n at exports.main_handler (/var/user/bin/index_scf.js:36:21)\n at EventHandler.exports.main_handler [as realHandler] (/var/user/index.js:6:56)\n at EventHandler.handle (/var/runtime/node8/bootstrap.js:402:28)\n at invoke (/var/runtime/node8/bootstrap.js:205:22)\n at Timeout.setTimeout [as _onTimeout] (/var/runtime/node8/bootstrap.js:137:9)\n at ontimeout (timers.js:475:11)\n at tryOnTimeout (timers.js:310:5)\n at Timer.listOnTimeout (timers.js:270:5)"}
全部五个盘都是如此
返回404,我想问下,是不是只能是A1?E5可以吗!?
我看,postRawUr里有a1的表述。。
而且必须要建立个文件夹分享吗?根目录如何弄呢?
Rt,原本想着再套个workers上去就行了的,但发现链接后面再加个?就又能显示目录。
在测试的时候,https://onepoint.onesrc.workers.dev/onedrive/onedrive/Sara-prison-break-2059075-337-500.jpg 类似的地址无法外链识别,只能使用图片的真实地址,这样显得地址过长。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.