summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_main_process.c
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2018-05-28 20:55:23 +0300
committerValentin Bartenev <vbart@nginx.com>2018-05-28 20:55:23 +0300
commitd7e6e2bd8cb81d47c9e7300937cb08ec35b6c21b (patch)
tree6472a83f7b6acc1962f0a7449d74ddc577306b85 /src/nxt_main_process.c
parent3befb08204f64983e684904ecd2cb20ff45dd3c2 (diff)
downloadunit-d7e6e2bd8cb81d47c9e7300937cb08ec35b6c21b.tar.gz
unit-d7e6e2bd8cb81d47c9e7300937cb08ec35b6c21b.tar.bz2
Configuration of environment variables for application processes.
Diffstat (limited to 'src/nxt_main_process.c')
-rw-r--r--src/nxt_main_process.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nxt_main_process.c b/src/nxt_main_process.c
index 46f49a72..f0a5903e 100644
--- a/src/nxt_main_process.c
+++ b/src/nxt_main_process.c
@@ -121,6 +121,12 @@ static nxt_conf_map_t nxt_common_app_conf[] = {
NXT_CONF_MAP_CSTRZ,
offsetof(nxt_common_app_conf_t, working_directory),
},
+
+ {
+ nxt_string("environment"),
+ NXT_CONF_MAP_PTR,
+ offsetof(nxt_common_app_conf_t, environment),
+ },
};