Introducing python virtualenv configuration.

New parameter 'home' for python application allows to configure
application-specific virtualenv path.

This closes #15 issue on GitHub.
This commit is contained in:
Max Romanov
2017-11-29 18:48:55 +03:00
parent ec4ad8780e
commit 3781950bad
4 changed files with 44 additions and 0 deletions

View File

@@ -120,6 +120,12 @@ static nxt_conf_map_t nxt_common_app_conf[] = {
offsetof(nxt_common_app_conf_t, workers),
},
{
nxt_string("home"),
NXT_CONF_MAP_CSTRZ,
offsetof(nxt_common_app_conf_t, u.python.home),
},
{
nxt_string("path"),
NXT_CONF_MAP_STR,