]> git.ipfire.org Git - thirdparty/haproxy.git/commit
DOC: configuration: update "Environment variables" chapter
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Tue, 19 Nov 2024 09:29:26 +0000 (10:29 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 20 Nov 2024 14:56:50 +0000 (15:56 +0100)
commit41d906d69bbfb8fbb4a41bff4de08cc9259eace4
tree1dbd4c09280bace73fdcc5aa25e0dd48494832c3
parentd6ccd1738bae7d56697371fdc09dd3882337e003
DOC: configuration: update "Environment variables" chapter

There are some variables, which are set by HAProxy process (HAPROXY_*). Some
of them are handy to check or to redefine in the configuration, in order to
create conditional blocks and make the configuration more flexible. But it
wasn't clear in the documentation, which variables are really safe and usefull
to redefine and which ones could be only read via "show env" output.

Latest changes in master-worker architecture makes the existed description even
more confusing.

So let's sort all HAPROXY_* variables to four categories and let's also mark
explicitly, which ones are set in which process, when haproxy is started in
master-worker mode.

In addition, update examples in chapter "2.4. Conditional blocks". This might
bring more ideas for users how HAPROXY_* variables could be used in the
conditional blocks.
doc/configuration.txt