haproxy/examples
Aurelien DARRAGON 837762e2ee MINOR: mailers: warn if mailers are configured but not actually used
Now that native mailers configuration is only usable with Lua mailers,
Willy noticed that we lack a way to warn the user if mailers were
previously configured on an older version but Lua mailers were not loaded,
which could trick the user into thinking mailers keep working when
transitionning to 3.2 while it is not.

In this patch we add the 'core.use_native_mailers_config()' Lua function
which should be called in Lua script body before making use of
'Proxy:get_mailers()' function to retrieve legacy mailers configuration
from haproxy main config. This way haproxy effectively knows that the
native mailers config is actually being used from Lua (which indicates
user correctly migrated from native mailers to Lua mailers), else if
mailers are configured but not used from Lua then haproxy warns the user
about the fact that they will be ignored unless they are used from Lua.
(e.g.: using the provided 'examples/lua/mailers.lua' to ease transition)
2025-06-27 16:41:18 +02:00
..
errorfiles MINOR: fix typos in the examples files 2018-11-18 22:24:51 +01:00
lua MINOR: mailers: warn if mailers are configured but not actually used 2025-06-27 16:41:18 +02:00
basic-config-edge.cfg EXAMPLES: update the basic-config-edge file for 2.8 2023-05-31 16:08:57 +02:00
content-sw-sample.cfg CLEANUP: examples: fix the example file content-sw-sample.cfg 2015-10-13 16:47:16 +02:00
games.cfg EXAMPLES: add "games.cfg" and an example game in Lua 2025-04-01 09:10:00 +02:00
haproxy.init DOC: remove last occurrences of "HA-Proxy" syntax 2021-05-09 06:29:40 +02:00
mptcp-backend.py MEDIUM: protocol: add MPTCP per address support 2024-08-30 18:53:49 +02:00
mptcp.cfg MEDIUM: protocol: add MPTCP per address support 2024-08-30 18:53:49 +02:00
option-http_proxy.cfg MEDIUM: proxy: remove long-broken 'option http_proxy' 2021-07-18 19:35:32 +02:00
quick-test.cfg EXAMPLES: add a trivial config for quick testing 2021-05-12 17:54:56 +02:00
socks4.cfg MEDIUM: connection: Upstream SOCKS4 proxy support 2019-05-31 17:24:06 +02:00
traces.cfg EXAMPLES: add "traces.cfg" with traces examples 2024-11-06 17:32:32 +01:00
transparent_proxy.cfg CLEANUP: assorted typo fixes in the code and comments 2020-06-26 11:27:28 +02:00
wurfl-example.cfg CLEANUP: assorted typo fixes in the code and comments 2020-06-26 11:27:28 +02:00