Skip to content

Commit

Permalink
1. 修复README.md显示bug
Browse files Browse the repository at this point in the history
  • Loading branch information
shinn-lancelot committed Sep 12, 2018
1 parent 4c0e8de commit bb4b62c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,15 @@
* 后台可以添加接口调用安全域名(即请求来源,仅安全域名下的请求可正常进行接口调用)。不添加安全域名无限制。
* 为了安全性,请及时修改管理员密码。
* 管理员账号密码保存在common/user.json中。虽然密码已加密,为确保信息安全,建议使用Web服务器(比如apache、nginx)限制用户直接请求json文件。

###### apache(httpd.conf)
> apache(httpd.conf)
```
<FilesMatch \.(json)$>
Order allow,deny
Deny from all
</FilesMatch>
```
###### nginx(nginx.conf)
> nginx(nginx.conf)
```
location ~ .*\.(json)$ {
deny all
Expand Down

0 comments on commit bb4b62c

Please sign in to comment.