Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' of https://github.com/YukiCoco/YukiDrive
Browse files Browse the repository at this point in the history
  • Loading branch information
YukiCoco committed Dec 9, 2020
2 parents 51a4934 + d2dad00 commit 4adf5a5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 20 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@

无需搭建运行环境,下载并配置完成后直接运行。

交流群:1092915386

## 演示
Demo:https://drive.yukino.co/
Demo:https://drive.kurisu.moe
Telegram 交流群:https://t.me/yukidrive

## Feature
+ .Net Core 多线程高并发
Expand Down
10 changes: 7 additions & 3 deletions doc/CLI-Usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## 使用方法

### 前言

目前处于 BETA 版本,将会是接下来开发的重心

### 变量介绍

站点名: SharePoint 创建时输入的名字,可在后台查看。输入 onedrive 则为 OneDrive。
Expand All @@ -14,15 +18,15 @@

命令:`YukiDrive.CLI --init 网址 CLI密码`

Sample`./YukiDrive.CLI --init https://drive.yukino.co myPassword`
示例`./YukiDrive.CLI --init https://drive.yukino.co myPassword`

### 上传

#### 单文件

命令:`YukiDrive.CLI --upload 站点名 本地路径 远程路径`

Sample
示例

`./YukiDrive.CLI --upload onedrive /Users/yukino/Desktop/upload.jpeg upload ` 将 upload.jpeg 上传到 OneDrive 的 upload 文件夹里

Expand All @@ -34,7 +38,7 @@ Sample:

命令:`YukiDrive.CLI --upload-folder 站点名 本地路径 远程路径 线程数`

Sample
示例

`./YukiDrive.CLI --upload-folder onedrive /Users/yukino/Desktop/1.0.0 YukiDrive/WebApi/1.1.0 4` 使用4线程将文件夹 /Users/yukino/Desktop/1.0.0 上传到 OneDrive 的 YukiDrive/WebApi/1.1.0 文件夹里

19 changes: 5 additions & 14 deletions doc/Usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ server
server
{
listen 80;
listen 443 ssl http2;
server_name example.com *.example.com; #你的域名
root /www/wwwroot/yukidrive/linux/wwwroot; # 填写为 程序所在目录/wwwroot
Expand All @@ -227,20 +226,11 @@ server
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
#SSL-START
ssl on;
ssl_certificate server.crt; #(证书公钥)
ssl_certificate_key server.key; #(证书私钥)
ssl_session_timeout 5m;
ssl_protocols SSLv2 SSLv3 TLSv1;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
#SSL-END
}
```

然后使用 `certbot` 之类的自动脚本申请证书就可以

## 启动并登录后台绑定账户

*未绑定之前直接访问域名会显示 出现错误:undefined 不必理会*
Expand Down Expand Up @@ -271,12 +261,13 @@ Windows 用户直接打开 YukiDrive.exe 开始运行。
做一些修改后复制下列**整条**语句到控制台执行

```shell
RUNDIR=/www/wwwroot/drive.kurisu.moe/YukiDrive-1.1.2-linux-x64 #修改为程序所在目录
echo "[Unit]
Description=YukiDrive
[Service]
WorkingDirectory=/www/wwwroot/yukidrive/linux #修改为 程序所在目录
ExecStart=/www/wwwroot/yukidrive/linux/YukiDrive #修改为 程序目录/YukiDrive
WorkingDirectory=$RUNDIR
ExecStart=$RUNDIR/YukiDrive
Restart=always
RestartSec=10
KillSignal=SIGINT
Expand Down

0 comments on commit 4adf5a5

Please sign in to comment.