pull/408/merge
YidaozhanYa 2021-09-28 16:24:00 +08:00 committed by GitHub
commit f70767305f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 168 additions and 53 deletions

127
README_en.md Normal file
View File

@ -0,0 +1,127 @@
[中文说明](readme.md)
# NOTICE: the release is used as archive.
Please read the descriptions of settings before raising an issue.
# Deploy to Heroku
Official: https://heroku.com
Demo: https://herooneindex.herokuapp.com/
How to Install:
> ~~Click the button [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy) to Deploy a new app~~(`"We couldn't deploy your app because the source code violates the Salesforce Acceptable Use and External-Facing Services Policy."`)
> Fork this project, create a heroku app, then turn to Deploy tab, 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 Vercel
Official: https://vercel.com/
Demo: None
Notice:
> 1, you must wait 30-50s to make sure deploy READY after change config;
> 2, Vercel limit 100 deploy every day.
How to Install: https://scfonedrive.github.io/Vercel/Deploy.html .
# Deploy to Tencent Serverless Cloud Function (SCF)
Official: https://cloud.tencent.com/product/scf
DEMO: None
Notice: SCF has new restrictions. The overall maximum environment variable is 4KB, so you can add up to 4 disks.
How to Install:
1Enter the function service, select the region above, and then click New.
2Enter the function name, select the template function, enter onedrive in the fuzzy search, any case, select the one [Get onedrive information.....], click Next, do not operate in the Code interface, just click Finish.
3Click Trigger Management, create a trigger, change the trigger method to API Gateway trigger, tick Enable integrated response below, and submit.
4You can see an access path in the trigger management, visit it, and start the installation.
(Key: check Enable integrated response)
When adding a disk, SCF may not be able to respond, and does not jump to Microsoft's website, causing the addition to fail. Please do not delete this disk, just add a disk with the same label again.
# Deploy to Huawei cloud Function Graph (FG)
Official: https://console.huaweicloud.com/functiongraph/
DEMO: None
Notice: In FG, the overall size of environment variables is 2KB, so at most 2 disks (one onedrive and one aliyundrive) can be added.
How to Install:
1In the function list, click Create a function on the right,
2Enter the name, select the PHP7.3 as runtime language, click Upload ZIP file, select the file, and click the create function on the right (The ZIP file downloaded from GitHub cannot be directly used here. After decompressing it, first removing the outer folder, then compress it to ZIP.)
3Create a trigger, select API gateway, select None for security authentication, change the backend timeout from 5000ms to 30000ms, then create a group above. After that, just click ,
4Visit the url given by the trigger and start the installation,
5Click the trigger name on the trigger interface, jump to API gateway management, click more URLs on the right, you can add a custom domain.After customizing the domain, if you still need xxxx.com/function name to access, click the edit above , click Next (page 1 does not need to be changed,) change the Request Path to `/`, note that the matching mode is prefix matching, Method is ANY, and then no need to click Next, click Finish now, and then go to publish to take effect.
# Deploy to Aliyun Function Compute (FC)
Official: https://fc.console.aliyun.com/
DEMO: None
How to Install:
1New function - HTTP function,
2Choose php 7.2 for runtime environment,
3Select anonymous as the trigger authentication method. Go to the request method, click GET and then POST(in the final box),
4Upload the code
5Click in the trigger, go to the custom domain configuration , click Go, Create, fill in `/*` in the path, and others are drop-down options.
6Visit your domain and start the installation.
# Deploy to Baidu Cloud Function Compute (CFC)
Official: https://console.bce.baidu.com/cfc/#/cfc/functions
DEMO: None
Using custom domain needs to use an API gateway and complete ICP filing.
How to Install:
1In the function list, click Create function,
2Change the creation method to a blank function, click Next,
3Enter the name, select PHP7.2 for runtime environment, and click Next,
4Trigger: drop down to select HTTP trigger, fill in URL path `/{filepath+}`, select all HTTP methods, set authentication to no verification, click submit,
5Enter the code editing page, change the editing type to upload the function ZIP package, and select the file (The ZIP file downloaded from GitHub cannot be directly used here. After decompressing it, first removing the outer folder, then compress it to ZIP), then start uploading,
6Click the trigger on the right, copy and visit the provided url to start the installation.
# Deploy to Virtual Private Server
DEMO: None
How to Install:
1.Start web service on your server (httpd or other), make sure you can visit it.
2.Make the rewrite works (the rule is in .htaccess file, If you are using nginx, then copy the rules from this file), make sure any query redirect to index.php.
3.Upload code.
4.Change the file .data/config.php can be read&write (666 is suggested).
5.View the website in a web browser.
# 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.
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.
The XXX_path in setting is the path in Onedrive, not in url, program will find the path in Onedrive.
LOGO ICON: put your 'favicon.ico' in the path you showed, make sure xxxxx.com/favicon.ico can be visited.
Program will show content of 'readme.md' & 'head.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.
Click 'EditTime' or 'Size', the list will sort by time or size, Click 'File' can resume sort.
# Functional files
### favicon.ico
put it in the showing home folder of FIRST disk (maybe not root of onedrive).
### index.html
show content of index.html as html.
### head.md readme.md
it will showed at top or bottom as markdown.
### head.omf foot.omf
it will showed at top or bottom as html (javascript works).
# A cup of coffee
https://paypal.me/qkqpttgf
# Chat
QQ Group: 212088653 (If you want to join please read the README first, thank you.)
Telegram Group: https://t.me/joinchat/I_RVc0bqxuxlT-d0cO7ozw

View File

@ -1,56 +1,58 @@
# NOTICE: the release is used as archive.
[English Readme](README_en.md)
# 注意release只是用来存档的。
Please read the descriptions of settings before raising an issue.
请将设置中所有的设置项的说明都读一遍,有些问题就不用问了。
# Deploy to Heroku
# 部署到 Heroku
Official: https://heroku.com
Demo: https://herooneindex.herokuapp.com/
How to Install:
> ~~Click the button [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy) to Deploy a new app~~(`"We couldn't deploy your app because the source code violates the Salesforce Acceptable Use and External-Facing Services Policy."`)
> Fork this project, create a heroku app, then turn to Deploy tab, deploy via connect to your github fork.
如何安装:
> ~~点击 [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy) 按钮来部署~~(`会提示"We couldn't deploy your app because the source code violates the Salesforce Acceptable Use and External-Facing Services Policy."`)
> Fork本项目然后在Heroku上创建一个app转到Deploy标签设置连接到你的Fork GitHub仓库然后部署。
# Deploy to Glitch
# 部署到 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.
如何安装: New Project -> Import form Github -> 粘贴 "https://github.com/qkqpttgf/OneManager-php", 完成之后,点击 Show -> In a New Window.
# Deploy to Vercel
# 部署到 Vercel
Official: https://vercel.com/
Demo: null
Notice:
> 1, you must wait 30-50s to make sure deploy READY after change config;
> 2, Vercel limit 100 deploy every day.
注意:
How to Install: https://scfonedrive.github.io/Vercel/Deploy.html .
> 1, 每次更改设置后你必须等待30-50秒等待部署完毕;
> 2, Vercel 限制每天100次部署.
如何安装: https://scfonedrive.github.io/Vercel/Deploy.html .
# Deploy to Tencent Serverless Cloud Function (SCF 腾讯无服务器云函数)
# 部署到 腾讯无服务器云函数 (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 Huawei cloud Function Graph (FG 华为云函数工作流)
# 部署到 华为云函数工作流 (FG)
Official: https://console.huaweicloud.com/functiongraph/
DEMO: 无
注意FG中环境变量整体大小为2KB所以最多添加2个盘一个onedrive一个aliyundrive
How to Install:
如何安装:
1在函数列表点右边创建函数
2输入名称选择运行时语言为PHP7.3点上传ZIP文件选择文件然后点右边的创建函数这里的ZIP文件不能直接用从Github上下载的ZIP文件要将它解压后去掉外层文件夹后再压缩为ZIP。
3创建触发器选API网关安全认证选None后端超时毫秒将5000改成30000上面创建分组一下其它的点点点
@ -58,11 +60,11 @@ How to Install:
5在触发器界面点触发器名称跳到API网关管理右边更多URL可以添加自定义域名自定义域名后发现还是要 xxxx.com/函数名 来访问点上方的编辑第1页不用改点下一步请求Path改成/注意匹配模式是前缀匹配Method为ANY然后不用点下一步了点立即完成然后去发布生效
# Deploy to Aliyun Function Compute (FC 阿里云函数计算)
# 部署到 阿里云函数计算 (FC)
Official: https://fc.console.aliyun.com/
DEMO: 无
How to Install:
如何安装:
1新建函数 -- HTTP函数
2运行环境选择php7.2
3触发器认证方式选择anonymous请求方式里面点一下GET再点一下POST最终框框里面有这2个
@ -71,12 +73,12 @@ How to Install:
6访问你的域名开始安装
# Deploy to Baidu Cloud Function Compute (CFC 百度云函数计算)
# 部署到 百度云函数计算 (CFC)
Official: https://console.bce.baidu.com/cfc/#/cfc/functions
DEMO: 无
自定义域名需要另外使用API网关并备案。
How to Install:
如何安装:
1在函数列表点创建函数
2创建方式改为空白函数点下一步
3输入名称选择运行时为PHP7.2,点下一步
@ -85,52 +87,38 @@ How to Install:
6点击右边触发器复制并访问提供的url开始安装
# Deploy to Virtual Private Server (VPS 或空间)
# 部署到 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 .data/config.php can be read&write (666 is suggested).
使web身份可读写代码中的.data/config.php文件推荐chmod 666 .data/config.php。
5.View the website in chrome or other.
在浏览器中访问。
如何安装:
1.启动web服务器确保你能访问到。
2.开启伪静态(重写)功能,规则在.htaccess文件中ngnix从里面复制我们的目的是不管访问什么都让index.php来处理。
3.上传好代码。
4.使web身份可读写代码中的.data/config.php文件推荐 `chmod 666 .data/config.php`
5.在浏览器中访问。
# 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.
游客上传目录也叫图床目录是指定一个目录让游客可以上传文件不限格式不限大小。这个目录里面的内容不列清单除非管理登录。如果目录中有index.html文件只会输出显示html文件不显示程序框架。
点击“时间”、“大小”,可以排序显示,点“文件”恢复原样。
# Functional files 功能性文件
# 功能性文件
### favicon.ico
put it in the showing home folder of FIRST disk (maybe not root of onedrive). 放在第一个盘的显示目录不一定是onedrive根目录
放在第一个盘的显示目录不一定是onedrive根目录
### index.html
show content of index.html as html. 将index.html以静态网页显示出来。
将index.html以静态网页显示出来。
### head.md readme.md
it will showed at top or bottom as markdown. 以MD语法显示在顶部或底部。
以Markdown语法显示在顶部或底部。
### head.omf foot.omf
it will showed at top or bottom as html (javascript works!). 以html显示在顶部或底部可以跑js
以html显示在顶部或底部可以跑js
# A cup of coffee
# 捐赠
https://paypal.me/qkqpttgf
# Chat
QQ Group: 212088653 (请看完上面的中英双语再加群,谢谢!)
# 聊天
QQ Group: 212088653 (请看完上面的README再加群,谢谢!)
Telegram Group: https://t.me/joinchat/I_RVc0bqxuxlT-d0cO7ozw