kong.kong

Attach a hooks table to the event bus

Kong public context handlers

Kong.init () Init Kong's environment in the Nginx master process.

Kong public context handlers


Kong.init

Init Kong's environment in the Nginx master process. To be called by the lua-nginx-module init_by_lua directive. Execution: - load the configuration from the path computed by the CLI - instanciate the DAO Factory - load the used plugins

 - load all plugins if used and installed
 - sort the plugins by priority

If any error happens during the initialization of the DAO or plugins, it return an nginx error and exit.