Router: read configuration from port.
Controller: stub to send configuration from POST body "as is" to router.
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include <nxt_runtime.h>
|
||||
#include <nxt_port.h>
|
||||
#include <nxt_master_process.h>
|
||||
#include <nxt_router.h>
|
||||
|
||||
|
||||
static void nxt_worker_process_quit(nxt_task_t *task);
|
||||
@@ -39,6 +40,15 @@ nxt_port_handler_t nxt_app_process_port_handlers[] = {
|
||||
};
|
||||
|
||||
|
||||
nxt_port_handler_t nxt_router_process_port_handlers[] = {
|
||||
nxt_worker_process_quit_handler,
|
||||
nxt_port_new_port_handler,
|
||||
nxt_port_change_log_file_handler,
|
||||
nxt_port_mmap_handler,
|
||||
nxt_router_conf_data_handler,
|
||||
};
|
||||
|
||||
|
||||
const nxt_sig_event_t nxt_worker_process_signals[] = {
|
||||
nxt_event_signal(SIGHUP, nxt_worker_process_signal_handler),
|
||||
nxt_event_signal(SIGINT, nxt_worker_process_sigterm_handler),
|
||||
|
||||
Reference in New Issue
Block a user