From cf324a1acfa7d2cd1ee299ad61e496b62ff06d32 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Sat, 8 Feb 2020 12:50:31 +0800 Subject: [PATCH] Update readme.md --- readme.md | 41 +++++++++++++++++++++++++++++++++-------- 1 file changed, 33 insertions(+), 8 deletions(-) diff --git a/readme.md b/readme.md index fd6763f..09d1d63 100644 --- a/readme.md +++ b/readme.md @@ -1,3 +1,18 @@ +# 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. + 在浏览器中访问。 + 6.Follow the guide, band your onedrive. + 根据引导,绑定你的OneDrive。 + # Deploy to SCF Official: https://cloud.tencent.com/product/scf @@ -12,11 +27,21 @@ How to Install: Click the button [![Deploy](https://www.herokucdn.com/deploy/but DEMO: https://herooneindex.herokuapp.com/ -# Deploy to VPS(Virtual Private Server) -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, make sure any query redirect to index.php. - 3.Upload code. - 4.Change the file config.php can be read&write (666 is suggested). - 5.Open the website in chrome or other. - 6.Follow the guide, band your onedrive. +# 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' under file list. +可以在文件列表下面显示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. +点击“时间”、“大小”,可以排序显示,点“文件”恢复原样。 +