Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
add deploy method without ngx-fancyindex
fix typo in config.md
  • Loading branch information
ganlvtech committed Oct 27, 2018
1 parent 09eebac commit 8dee456
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

```js
window.down52PojieCn = new Down52PojieCn({
vueElement: '#app';
vueElement: '#app',
routerMode: 'hash',
baseUrl: 'https://down.52pojie.cn',
requestType: 'json',
Expand All @@ -36,7 +36,7 @@ window.down52PojieCn = new Down52PojieCn({

```js
window.down52PojieCn = new Down52PojieCn({
vueElement: '#app';
vueElement: '#app',
routerMode: 'hash',
baseUrl: 'https://down.52pojie.cn',
requestType: 'jsonp',
Expand Down
66 changes: 65 additions & 1 deletion docs/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ server {
listen 443 ssl;
root /srv/www/down;
index index.html index.htm;
server_name down.localhost;
server_name down.test;
location / {
fancyindex on;
Expand All @@ -76,4 +76,68 @@ sudo service nginx reload

## 使用 history 模式

## 网站的目录结构

```plain
/
foo.zip
bar.exe
......
index.html
.fancyindex/
js/
css/
```

### Nginx 配置

```nginx
server {
listen 80;
listen 443 ssl;
root /srv/www/down;
index /index.html;
server_name down.test;
}
```

### 插件配置

```javascript
window.down52PojieCn = new Down52PojieCn({
routerMode: 'history'
});
```

## 使用 hash 模式

### 网站的目录结构

```plain
/
foo.zip
bar.exe
......
index.html
.fancyindex/
js/
css/
```

### Nginx 配置

```nginx
server {
listen 80;
listen 443 ssl;
root /srv/www/down;
index index.html;
server_name down.test;
}
```

### 插件配置

```javascript
window.down52PojieCn = new Down52PojieCn({});
```

0 comments on commit 8dee456

Please sign in to comment.