An index & manager of Onedrive based on serverless. Can be deployed to Heroku/Glitch/Vercel/Replit/SCF/FG/FC/CFC/PHP web hosting/VPS.
 
 
 
 
Go to file
qkqpttgf 283b046b80
remove empty config
2020-03-19 18:46:53 +08:00
function remove empty config 2020-03-19 18:46:53 +08:00
theme in upload, not open new window, add copy button 2020-03-19 15:05:57 +08:00
vendor Add files via upload 2020-01-18 20:12:21 +08:00
.htaccess Update .htaccess 2020-03-13 11:03:16 +08:00
app.json Update app.json 2020-02-01 11:49:46 +08:00
config.php Add files via upload 2020-01-18 20:12:21 +08:00
conststr.php in upload, not open new window, add copy button 2020-03-19 15:06:47 +08:00
index.php Update index.php 2020-03-13 20:35:28 +08:00
readme.md Update readme.md 2020-03-13 11:32:39 +08:00
update.sh Update update.sh 2020-03-08 11:02:49 +08:00
version Update version 2020-03-11 21:58:26 +08:00
writeable.sh Add files via upload 2020-01-18 20:12:21 +08:00

readme.md

Install program first, then add onedrive in setup after login.
先安装程序登录后在设置中添加onedrive。

Deploy to heroku

Official: https://heroku.com

How to Install: Click the button Deploy to Deploy a new app, or create an app then deploy via connect to your github fork.

DEMO: https://herooneindex.herokuapp.com/

Deploy to VPS(Virtual Private Server) 部署到VPS或空间

How to Install:
1.Start web service on your server (httpd or other), make sure you can visit it.
启动web服务器确保你能访问到。
2.Make the rewrite works, the rule is in .htaccess file, make sure any query redirect to index.php.
开启伪静态(重写)功能,规则在.htaccess文件中ngnix从里面复制我们的目的是不管访问什么都让index.php来处理。
3.Upload code.
上传好代码。
4.Change the file config.php can be read&write (666 is suggested).
让代码中的config.php文件程序可读写推荐chmod 666 config.php。
5.View the website in chrome or other.
在浏览器中访问。

Deploy to SCF

Official: https://cloud.tencent.com/product/scf

How to Install: https://service-pgxgvop2-1258064400.ap-hongkong.apigateway.myqcloud.com/test/abcdef/%E6%97%A0%E6%9C%8D%E5%8A%A1%E5%99%A8%E5%87%BD%E6%95%B0SCF%E6%90%AD%E5%BB%BAOneDrive.mp4?preview

先手动在环境变量添加Regionap-hongkong或ap-guangzhou之类具体看 https://cloud.tencent.com/document/api/583/17238 最底下,然后再安装。
添加网盘时SCF反应不过来会添加失败请不要删除再添加一次相同的就可以了。

DEMO: https://service-pgxgvop2-1258064400.ap-hongkong.apigateway.myqcloud.com/test/abcdef/

Features 特性

When downloading files, the program produce a direct url, visitor download files from MS OFFICE via the direct url, the server expend a few bandwidth in produce.
下载时由程序解析出直链浏览器直接从微软Onedrive服务器下载文件服务器只消耗与微软通信的少量流量。
When uploading files, the program produce a direct url, visitor upload files to MS OFFICE via the direct url, the server expend a few bandwidth in produce.
上传时由程序生成上传url浏览器直接向微软Onedrive的这个url上传文件服务器只消耗与微软通信的少量流量。
The XXX_path in setting is the path in Onedrive, not in url, program will find the path in Onedrive.
设置中的 XXX_path 是Onedrive里面的路径并不是你url里面的程序会去你Onedrive里面找这个路径。
LOGO ICON: put your 'favicon.ico' in the path you showed, make sure xxxxx.com/favicon.ico can be visited.
网站图标将favicon.ico文件放在你要展示的目录中确保 xxxxx.com/favicon.ico 可以访问到。
Program will show content of 'readme.md' & 'head.md'.
可以在文件列表显示head.md跟readme.md文件的内容。
guest up path, is a folder that the guest can upload files, but can not be list (exclude admin).
游客上传目录(也叫图床目录),是指定一个目录,让游客可以上传文件,不限格式,不限大小。这个目录里面的内容不列清单(除非管理登录)。
If there is 'index.html' file, program will only show the content of 'index.html', not list the files.
如果目录中有index.html文件只会输出显示html文件不显示程序框架。
Click 'EditTime' or 'Size', the list will sort by time or size, Click 'File' can resume sort.
点击“时间”、“大小”,可以排序显示,点“文件”恢复原样。

QQ Group: 943919989
Telegram Group: https://t.me/joinchat/I_RVc0bqxuxlT-d0cO7ozw