diff options
author | Yorhel <git@yorhel.nl> | 2018-01-24 10:33:07 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2018-01-24 10:33:07 +0100 |
commit | 45c5ed1ded1c68d610597da8bffe2b19a00dddeb (patch) | |
tree | 026fd356443932d7ff180406f12d31864848b165 /nginx-confgen.pod | |
parent | 673154ea459f7fee5af668b2d1bb4b6a0938ee08 (diff) |
Add pre_warn directive
Diffstat (limited to 'nginx-confgen.pod')
-rw-r--r-- | nginx-confgen.pod | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/nginx-confgen.pod b/nginx-confgen.pod index d95c20b..10af518 100644 --- a/nginx-confgen.pod +++ b/nginx-confgen.pod @@ -97,6 +97,25 @@ things usually work better without: proxy_pass http://$1/; } +=head2 pre_warn + +This directive, when interpreted, will generate a warning to the standard error +of nginx-confgen. Can be used to signal that a special configuration is being +used: + + pre_if -e /etc/offline-mode { + pre_warn "Putting website in offline mode!"; + } + +Or to warn about certain directives: + + pre_macro proxy_cache $var { + pre_warn "Using proxy_cache with $var violates company policy!"; + + # But we can output it anyway. + proxy_cache $var; + } + =head2 macro Define a I<macro>, which is a configuration block that you can later refer to. |