Allow operators to use glob patterns (e.g. *.bit.ly, *.t.co) in the
redirector hosts list. Bare hostnames continue to match exactly, so no
operational change for existing maps; only the option to use wildcards
is new.
Signed-off-by: Dmitriy Alekseev <1865999+dragoangel@users.noreply.github.com>
else
local lua_maps = require "lua_maps"
settings.redirector_hosts_map = lua_maps.map_add_from_ucl(settings.redirector_hosts_map,
- 'set', 'Redirectors definitions')
+ 'glob', 'Redirectors definitions (glob: bare names match exactly, *.foo matches subs)')
if settings.redirector_get_urls_map then
settings.redirector_get_urls_map = lua_maps.map_add_from_ucl(