Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
phachon authored Jan 22, 2018
1 parent bb9aa03 commit 3ae5121
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ config.toml 文件读取顺序:<br>

```
[listen]
server="127.0.0.1:8087" // 监听的 server
# 监听上传 server
upload="127.0.0.1:8087"
# 监听下载 server
download="127.0.0.1:8088"
[upload]
form_field="upload" // 表单提交字段
allow_type = [".jpg", ".jpeg", ".png"] // 允许上传的图片格式
Expand All @@ -43,6 +46,11 @@ root_dir = "upload" // 图片上传根目录
filename_len = 16 // 图片保存文件名字符串长度
dirname_len = 4 // 目录树的目录名长度
thumbnails = ["200_200", "300_300", "200_400"] // 要生成的缩略图尺寸 width_height
[download]
# 下载的地址 协议://域名:端口
uri = "http://test.com:8088"
[appname] // appname 用于授权,可多个
[appname.test]
app_key = "ad%4a*a&ada@#ada"
Expand Down Expand Up @@ -99,4 +107,4 @@ MIT

Thanks
---------
Create By [email protected]
Create By [email protected]

0 comments on commit 3ae5121

Please sign in to comment.