NJS: supported loadable modules.

This commit is contained in:
Zhidao HONG
2023-05-08 16:00:25 +08:00
parent 56af7bb825
commit a3c3a29493
16 changed files with 1592 additions and 51 deletions

View File

@@ -14,6 +14,9 @@
#if (NXT_TLS)
#include <nxt_cert.h>
#endif
#if (NXT_HAVE_NJS)
#include <nxt_script.h>
#endif
#include <sys/mount.h>
@@ -607,6 +610,10 @@ static nxt_port_handlers_t nxt_main_process_port_handlers = {
#if (NXT_TLS)
.cert_get = nxt_cert_store_get_handler,
.cert_delete = nxt_cert_store_delete_handler,
#endif
#if (NXT_HAVE_NJS)
.script_get = nxt_script_store_get_handler,
.script_delete = nxt_script_store_delete_handler,
#endif
.access_log = nxt_main_port_access_log_handler,
.rpc_ready = nxt_port_rpc_handler,