Skip to content

Commit 5c83ef4

Browse files
great-machineTotktonada
authored andcommitted
Update lua-nginx-module example
Show how to use external cjson in case of a problem with built-in one from lua-resty-core.
1 parent 64b6711 commit 5c83ef4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,18 @@ Here is an example with `ngx_lua`:
353353
```nginx
354354
# Nginx, configuration
355355
356+
# If you're experience an problem with lua-resty-core like
357+
# https://github.com/openresty/lua-nginx-module/issues/1509
358+
# it can be disabled by the following directive.
359+
#
360+
# lua_load_resty_core off;
361+
362+
# If you're not using lua-resty-core you may need to manually specify a path
363+
# to cjson module. See the documentation:
364+
# https://github.com/openresty/lua-nginx-module#lua_package_cpath
365+
#
366+
# lua_package_cpath "/path/in/lua/cpath/format/?.so";
367+
356368
upstream tnt_upstream {
357369
server 127.0.0.1:9999;
358370
keepalive 10000;

0 commit comments

Comments
 (0)