From fa6c066421214c6eb3a3465a6ed51bc53d44584d Mon Sep 17 00:00:00 2001 From: Dominic Guana Date: Sun, 2 Jun 2019 07:10:00 +0800 Subject: [PATCH] Update lua-nginx-module example Show how to use external cjson in case of a problem with built-in one from lua-resty-core. --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index e993a63..50966dc 100644 --- a/README.md +++ b/README.md @@ -353,6 +353,18 @@ Here is an example with `ngx_lua`: ```nginx # Nginx, configuration + # If you're experience an problem with lua-resty-core like + # https://github.com/openresty/lua-nginx-module/issues/1509 + # it can be disabled by the following directive. + # + # lua_load_resty_core off; + + # If you're not using lua-resty-core you may need to manually specify a path + # to cjson module. See the documentation: + # https://github.com/openresty/lua-nginx-module#lua_package_cpath + # + # lua_package_cpath "/path/in/lua/cpath/format/?.so"; + upstream tnt_upstream { server 127.0.0.1:9999; keepalive 10000;