Skip to content

Commit 5ff3560

Browse files
committed
modified: README.md
1 parent 687e20b commit 5ff3560

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ img.xxx.com
4848
## 安装
4949

5050
#### nginx vhost 配置
51+
```bash
5152
server {
5253
listen 80;
5354

@@ -95,8 +96,10 @@ server {
9596
deny all;
9697
}
9798
}
99+
```
98100
99101
#### lua文件
102+
```bash
100103
-- 检测路径是否目录
101104
local function is_dir(sPath)
102105
if type(sPath) ~= "string" then return false end
@@ -160,4 +163,6 @@ if (file_exists(ngx.var.request_filepath)) then
160163
else
161164
ngx.exit(ngx.HTTP_NOT_FOUND);
162165
end
166+
```
163167
168+
参考:https://github.com/hopesoft/nginx-lua-image-module

0 commit comments

Comments
 (0)