Version 2.0.0
Added
- Multiple Application Support.
- Multiple Application Support Example.
- Filters now configurable via Config.
Changed
- Tests.
- README.
- Examples.
REQUIRES ACTION
Updating from a previous version requires several changes to the pxconfig.lua and nginx.conf.
See examples/Multiple Applications files for reference.
-
In your
nginx.conffile, replaceinit_worker_by_lua_filewithinit_worker_by_lua_block { require ("px.utils.pxtimer").application() } -
In each of the location blocks in your app (each route protected with the module), replace
access_by_lua_file(in each block of location) withaccess_by_lua_block { require("px.pxnginx").application() } -
Compare your local
pxconfig.luafile, with the config file located atlib/px/pxconfig.lua, adding in the whitelist filters to the configuration file.