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.
This commit is contained in:
Max Romanov
2020-09-18 13:41:58 +03:00
parent 6b9882fc14
commit f16ae01b12
4 changed files with 21 additions and 5 deletions

View File

@@ -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),
},
};