Merge branch 'master' of https://github.com/jamebal/jmal-cloud-view
This commit is contained in:
commit
359865b43e
110
README.md
110
README.md
@ -1,66 +1,100 @@
|
||||
### DEMO: www.jmal.cloud , 用户名:amdin,密码:123456
|
||||
# JmalCloud 个人网盘
|
||||
JmalCloud 是一款私有云存储网盘项目
|
||||
|
||||
### 线上预览地址: https://www.jmal.top , 用户名:amdin,密码:jmalcloud
|
||||
|
||||
部分截图:
|
||||

|
||||

|
||||
|
||||
# jmal-cloud-view
|
||||
网盘前端界面
|
||||
|
||||
基于 [vue-admin-template](https://github.com/PanJiaChen/vue-admin-template)
|
||||
### 部署
|
||||
|
||||
## 开始
|
||||
#### 1.环境准备
|
||||
|
||||
### 1.运行nginx服务器,需要安装[mod_zip](https://github.com/evanmiller/mod_zip) 的nginx插件
|
||||
- nginx 1.18+
|
||||
- mongodb 4.0+
|
||||
- jdk 1.8+
|
||||
|
||||
nginx配置 [nignx.conf](https://github.com/jamebal/jmal-cloud-server/blob/master/src/main/resources/nginx.conf)
|
||||
#### 2.下载网盘界面程序,并配置nginx
|
||||
|
||||
### 2.运行web服务器 [jmal-cloud-server](https://github.com/jamebal/jmal-cloud-server)
|
||||
去[这里](https://github.com/jamebal/jmal-cloud-view/releases)下载最新的版本,选择dist.tar下载
|
||||
|
||||
下载最新的 [clouddisk-x.x.x-exec.jar](https://github.com/jamebal/jmal-cloud-server/releases)
|
||||
下载后解压到某个地方
|
||||
|
||||
启动(需要提前安装jdk环境)
|
||||
```bash
|
||||
java -jar clouddisk-1.0-exec.jar --file.rrootDir=/home/jmal/file/
|
||||
# file.rrootDir表示文件保存的目录
|
||||
```
|
||||
或者克隆下来自己编译
|
||||
```bash
|
||||
git clone https://github.com/jamebal/jmal-cloud-server.git
|
||||
nginx配置如下: (只需要修改两个地方)
|
||||
|
||||
```nginx
|
||||
server {
|
||||
listen 80;
|
||||
# 1.这里填写你的ip地址,或域名
|
||||
server_name xxx;
|
||||
# 2.这填写为dist.tar解压后的路径
|
||||
root xxx;
|
||||
|
||||
client_body_temp_path /Users/jmal/temp/filetest/rootpath;
|
||||
client_max_body_size 100m;
|
||||
client_body_buffer_size 100m;
|
||||
|
||||
location /api {
|
||||
proxy_pass http://localhost:8088/;
|
||||
proxy_set_header Host $proxy_host;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
index index.html index.htm;
|
||||
}
|
||||
|
||||
location /mq {
|
||||
proxy_pass http://localhost:8088/mq/;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_connect_timeout 60s;
|
||||
proxy_read_timeout 500s;
|
||||
proxy_send_timeout 500s;
|
||||
}
|
||||
|
||||
location /articles {
|
||||
proxy_pass http://localhost:8088/articles;
|
||||
proxy_set_header Host $proxy_host;
|
||||
}
|
||||
|
||||
location ~ \.(eot|otf|ttf|woff|woff2|svg)$ {
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### 3. 配置前端界面
|
||||
#### 4.下载网盘服务程序
|
||||
|
||||
#### 开发模式
|
||||
```bash
|
||||
git clone https://github.com/jamebal/jmal-cloud-view.git
|
||||
去[这里](https://github.com/jamebal/jmal-cloud-server/releases)最新的jar包
|
||||
|
||||
cd jmal-cloud-view
|
||||
启动(需要提前安装jdk,mongodb环境)
|
||||
|
||||
npm install
|
||||
`java -jar clouddisk-2.0-exec.jar --spring.profiles.active=prod --file.rootDir=xxx`
|
||||
|
||||
npm run dev
|
||||
```
|
||||
然后打开 http://localhost:9528
|
||||
其中`file.rrootDir`为网盘文件真实的存储的位置
|
||||
|
||||
#### 或者构建
|
||||
```bash
|
||||
# 为生产环境构建
|
||||
npm run build:prod
|
||||
```
|
||||
#### 5.访问
|
||||
在浏览器里直接输入你的IP或域名即可
|
||||
|
||||
将生成的dist目录配置到[nginx](https://github.com/jamebal/jmal-cloud-server/blob/master/src/main/resources/nginx.conf)中
|
||||
|
||||
也可在[这里](https://github.com/jamebal/jmal-cloud-server/releases)下载最新的 dist目录
|
||||
|
||||
然后访问 http://localhost 即可
|
||||
|
||||
## 浏览器支持
|
||||
### 浏览器支持
|
||||
|
||||
| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt="IE / Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>IE / Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Safari |
|
||||
| --------- | --------- | --------- | --------- |
|
||||
| IE10, IE11, Edge| last 2 versions| last 2 versions| last 2 versions
|
||||
|
||||
## License
|
||||
### 后续更新
|
||||
|
||||
- [ ] webDAV
|
||||
- [ ] iOS APP
|
||||
- [ ] Android APP
|
||||
- [ ] PC
|
||||
|
||||
### 许可
|
||||
|
||||
[MIT](https://github.com/jamebal/jmal-cloud-view/blob/master/LICENSE) license.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user