]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MAJOR: tools: support environment variables in addresses
authorWilly Tarreau <w@1wt.eu>
Mon, 11 Mar 2013 00:20:04 +0000 (01:20 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 11 Mar 2013 00:30:02 +0000 (01:30 +0100)
commitdad36a3ee3289b55787c4c8003cd968e8a9b9c51
treeecb06f722eaf60b902ecdb7fa5486fce933f0a78
parent40aa070c51648606b89fe65408de797827e3d092
MAJOR: tools: support environment variables in addresses

Now that all addresses are parsed using str2sa_range(), it becomes easy
to add support for environment variables and use them everywhere an address
is needed. Environment variables are used as $VAR or ${VAR} as in shell.
Any number of variables may compose an address, allowing various fantasies
such as "fd@${FD_HTTP}" or "${LAN_DC1}.1:80".

These ones are usable in logs, bind, servers, peers, stats socket, source,
dispatch, and check address.
doc/configuration.txt
include/common/standard.h
src/standard.c