server {
location / {
lua_code_cache on;
content_by_lua_file /path/to/script.lua;
}
}
ctrl + c
lua_code_cache controls Lua code caching | on; enables code cache |
content_by_lua_file nginx-lua directive to load code from specified Lua code file | /path/to/script.lua path with Lua code to load |
|