-
-
Notifications
You must be signed in to change notification settings - Fork 312
Using Resty Core Library
Conor McKnight edited this page May 26, 2026
·
4 revisions
The script works without the need for the resty core library but in case you like the features or functions you can use the library like so.
To use the resty core library all you need to do is edit your nginx config to include this in your http block http {
# https://github.com/openresty/lua-resty-core
lua_package_path "./conf/lua/lua-resty-core/lib/?.lua;;";Then inside the script make any changes or additions you like.
If you have multiple libraries or packages you can load multiple in like this.
# https://github.com/openresty/lua-resty-core
lua_package_path "./conf/lua/lua-resty-redis/lib/?.lua;./conf/lua/lua-resty-lrucache/lib/?.lua;./conf/lua/lua-resty-memcached/lib/?.lua;;";