Refactoring: cleanup all the map
s in configuration using Lua
#3797
Labels
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
It's hard to wrap your head around currently in the Nginx configuration template and
map
is limited.We can introduce a new Lua middleware to take care of i.e setting
$best_http_host
and all the other similar variables. To do that we should make sure configmap settings are synced to Lua and stored in theconfiguration_data
shared dictionary. We can then introducerewrite_by_lua_block
phase inhttp
section and call this new Lua middleware there.The text was updated successfully, but these errors were encountered: