add resolver config

This commit is contained in:
moicen
2021-12-28 23:15:54 +08:00
committed by 阿男
parent 7ba0de85c7
commit 54da06fa6f
+10
View File
@@ -1,3 +1,13 @@
resty里请求域名地址时无法使用本地的`/etc/hosts`文件,需在`nginx.conf`文件中的`http`模块内添加`resolver`配置显式指定:
```nginx
http {
...
resolver 8.8.8.8;
...
}
```
put `upload.lua` into:
```bash