Go to file
qkqpttgf 75702b9a77
fix: #162
2020-12-01 12:56:35 +08:00
.data Add platform Glitch 2020-11-06 18:02:03 +08:00
platform try fix some platform disable visit file start with . 2020-11-26 15:51:17 +08:00
theme Fix Download Error for renexmoe 2020-11-29 18:33:02 +08:00
vendor rm not used vendor 2020-08-17 04:51:12 -04:00
.htaccess add Caddy2 rule 2020-09-27 16:08:50 +08:00
CFWorkers.js fix bug 2020-10-03 11:28:56 +08:00
app.json Update app.json 2020-02-01 11:49:46 +08:00
common.php fix: #162 2020-12-01 12:56:35 +08:00
conststr.php autoJumpFirstDisk 2020-08-17 17:35:43 +08:00
glitch.json Add platform Glitch 2020-11-06 18:02:03 +08:00
index.php fix: FC base_path 2020-09-22 19:41:50 +08:00
readme.md Update readme.md 2020-11-06 19:28:23 +08:00
update.sh Update update.sh 2020-11-17 23:22:56 +08:00
version Update version 2020-11-06 18:03:52 +08:00
web.config Add IIS rewrite rule 2020-08-28 10:53:35 +08:00
writeable.sh Add platform Glitch 2020-11-06 18:02:03 +08:00

readme.md

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

Deploy to Heroku

Official: https://heroku.com
Demo: https://herooneindex.herokuapp.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.

Deploy to Glitch

Official: https://glitch.com/
Demo: https://onemanager.glitch.me/

How to Install: New Project -> Import form Github -> paste "https://github.com/qkqpttgf/OneManager-php", after done, Show -> In a New Window.

Deploy to Tencent Serverless Cloud Function (SCF 腾讯无服务器云函数)

Official: https://cloud.tencent.com/product/scf
DEMO: 无
注意SCF新增限制环境变量整体最大4KB所以最多添加4个盘。

How to Install:
1进入函数服务上方选择地区然后点击新建。
2输入函数名称选择模板函数在模糊搜索中输入onedrive大小写随意选择那个【获取onedrive信息.....】,点下一步,在代码界面不用动,直接点完成。
3点击触发管理创建触发器触发方式改成API网关触发底下勾选启用集成响应提交。
4在触发管理中可以看到一个 访问路径,访问它,开始安装。

(重点:勾选集成响应)

添加网盘时SCF可能会反应不过来不跳转到微软导致添加失败请不要删除这个盘再添加一次相同标签的盘就可以了。

Deploy to Virtual Private Server (VPS 或空间)

DEMO: 无
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 Huawei cloud Function Graph (FG 华为云函数工作流)

Official: https://console.huaweicloud.com/functiongraph/
DEMO: 无
注意FG中环境变量整体大小为2KB所以最多添加2个盘。

How to Install:
1在函数列表点右边创建函数
2输入名称选择运行时语言为PHP7.3点上传ZIP文件选择文件然后点右边的创建函数这里的ZIP文件不能直接用从Github上下载的ZIP文件要将它解压后去掉外层文件夹后再压缩为ZIP。
3创建触发器选API网关安全认证选None后端超时毫秒将5000改成30000上面创建分组一下其它的点点点
4访问触发器给的url开始安装
5在触发器界面点触发器名称跳到API网关管理右边更多URL可以添加自定义域名自定义域名后发现还是要 xxxx.com/函数名 来访问点上方的编辑第1页不用改点下一步请求Path改成/注意匹配模式是前缀匹配Method为ANY然后不用点下一步了点立即完成然后去发布生效

Deploy to Aliyun Function Compute (FC 阿里云函数计算)

Official: https://fc.console.aliyun.com/
DEMO: 无

How to Install:
1新建函数 -- HTTP函数
2运行环境选择php7.2
3触发器认证方式选择anonymous请求方式里面点一下GET再点一下POST最终框框里面有这2个
4上传代码
5触发器中点进去找到配置自定义域名点击前往创建路径中填 /* ,其它下拉选择。
6访问你的域名开始安装

Deploy to Baidu Cloud Function Compute (CFC 百度云函数计算)

Official: https://console.bce.baidu.com/cfc/#/cfc/functions
DEMO: 无
自定义域名需要另外使用API网关并备案。

How to Install:
1在函数列表点创建函数
2创建方式改为空白函数点下一步
3输入名称选择运行时为PHP7.2,点下一步
4触发器下拉选择HTTP触发器URL路径填 /{filepath+} HTTP方法全选身份验证不验证点提交
5进入代码编辑页编辑类型改上传函数ZIP包选择文件这里的ZIP文件不能直接用从Github上下载的ZIP文件要将它解压后去掉外层文件夹后再压缩为ZIP。开始上传
6点击右边触发器复制并访问提供的url开始安装

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