summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_conf_validation.c
diff options
context:
space:
mode:
authorZhidao HONG <z.hong@f5.com>2021-09-30 22:17:28 +0800
committerZhidao HONG <z.hong@f5.com>2021-09-30 22:17:28 +0800
commitc5220944d2acdb912c129fc82ac8a83d24e9845d (patch)
tree8cea32d295c7bde273cfe3a14b6044463aaec155 /src/nxt_conf_validation.c
parent37144d68499217d086c26a2030e6e9f6f7342152 (diff)
downloadunit-c5220944d2acdb912c129fc82ac8a83d24e9845d.tar.gz
unit-c5220944d2acdb912c129fc82ac8a83d24e9845d.tar.bz2
Static: variables in the "share" option.
This commit supports variable in the "share" option, the finding path to file serve is the value from "share". An example: { "share": "/www/data/static$uri" }
Diffstat (limited to 'src/nxt_conf_validation.c')
-rw-r--r--src/nxt_conf_validation.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nxt_conf_validation.c b/src/nxt_conf_validation.c
index 7d599938..23e6d823 100644
--- a/src/nxt_conf_validation.c
+++ b/src/nxt_conf_validation.c
@@ -634,6 +634,7 @@ static nxt_conf_vldt_object_t nxt_conf_vldt_share_action_members[] = {
{
.name = nxt_string("share"),
.type = NXT_CONF_VLDT_STRING,
+ .flags = NXT_CONF_VLDT_VAR,
}, {
.name = nxt_string("types"),
.type = NXT_CONF_VLDT_STRING | NXT_CONF_VLDT_ARRAY,