From f16ae01b12e612701f44c028f188d1ded58d0358 Mon Sep 17 00:00:00 2001 From: Max Romanov Date: Fri, 18 Sep 2020 13:41:58 +0300 Subject: Python: app module callable name configuration. Now it is possible to specify the name of the application callable using optional parameter 'callable'. Default value is 'application'. This closes #290 issue on GitHub. --- src/nxt_main_process.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/nxt_main_process.c') diff --git a/src/nxt_main_process.c b/src/nxt_main_process.c index 544a0cbd..d2edab1d 100644 --- a/src/nxt_main_process.c +++ b/src/nxt_main_process.c @@ -191,6 +191,12 @@ static nxt_conf_map_t nxt_python_app_conf[] = { NXT_CONF_MAP_STR, offsetof(nxt_common_app_conf_t, u.python.module), }, + + { + nxt_string("callable"), + NXT_CONF_MAP_CSTRZ, + offsetof(nxt_common_app_conf_t, u.python.callable), + }, }; -- cgit