]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: config: support default values for environment variables
authorWilly Tarreau <w@1wt.eu>
Thu, 18 Nov 2021 16:42:50 +0000 (17:42 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 18 Nov 2021 16:54:49 +0000 (17:54 +0100)
commitec347b1239202dafbccf89a06a39fb5986400e19
tree7bb59d00ff1f675ed2c06b5d123f4d715317df9b
parent002e2068cc3429ba259ffc20b4ef77d774a065df
MINOR: config: support default values for environment variables

Sometimes it is really useful to be able to specify a default value for
an optional environment variable, like the ${name-value} construct in
shell. In fact we're really missing this for a number of settings in
reg tests, starting with timeouts.

This commit simply adds support for the common syntax above. Other
common forms like '+' to replace existing variables, or ':-' and ':+'
to act on empty variables, were not implemented at this stage, as they
are less commonly needed.
doc/configuration.txt
src/tools.c