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

@@ -773,6 +773,12 @@ static nxt_conf_vldt_object_t nxt_conf_vldt_python_members[] = {
NULL,
NULL },
{ nxt_string("callable"),
NXT_CONF_VLDT_STRING,
0,
NULL,
NULL },
NXT_CONF_VLDT_NEXT(&nxt_conf_vldt_common_members)
};