summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2020-10-22 14:45:09 +0200
committerYorhel <git@yorhel.nl>2020-10-22 14:45:09 +0200
commit07add13b8fa6fb14f15b886a2a84bc5bf83f26da (patch)
treed78f438765c408b23be0b02b349d18d2de40240f
parent4281504c1501e403c6c734c1dca2d14176206805 (diff)
man: Mention what nginx-confgen does with unknown vars
-rw-r--r--nginx-confgen.pod8
1 files changed, 8 insertions, 0 deletions
diff --git a/nginx-confgen.pod b/nginx-confgen.pod
index 561930e..735a4cc 100644
--- a/nginx-confgen.pod
+++ b/nginx-confgen.pod
@@ -86,6 +86,14 @@ example:
}
# $var is "inner" at this point.
+Only variables that are known to nginx-confgen will be substituted, unknown
+variables are assumed to be run-time variables for nginx and will be left alone
+without warning. For example:
+
+ pre_set $ip 127.0.0.1;
+ deny $ip; # This will output as: block 127.0.0.1;
+ deny $otherip; # This will output as: block $otherip;
+
=head2 pre_exec
Run a shell command, and store the output in a variable. For example, nginx