So with Nginx the following settings
http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache_background_update
http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_cache_background_update
But I don't see anywhere saying if we can make these variables dynamic in Nginx with Lua under conditions.
local enable = "lol"
if enable = nil then
ngx.var.proxy_cache_background_update = "on"
end
Are we allowed to make these var's dynamic with ngx.var.* functionality or is there a different method i should be using ?