diff options
author | Max Romanov <max.romanov@nginx.com> | 2020-09-18 13:41:58 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2020-09-18 13:41:58 +0300 |
commit | f16ae01b12e612701f44c028f188d1ded58d0358 (patch) | |
tree | 4f27231e1e7fdebfa7df9b7c07eb183fa4d82b07 /src/nxt_main_process.c | |
parent | 6b9882fc142cab4a15a272991096ef4db260bf0f (diff) | |
download | unit-f16ae01b12e612701f44c028f188d1ded58d0358.tar.gz unit-f16ae01b12e612701f44c028f188d1ded58d0358.tar.bz2 |
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.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_main_process.c | 6 |
1 files changed, 6 insertions, 0 deletions
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), + }, }; |