I'd like my conf file to handle a configurable resolver. I attempted to do this with an environment variable passed in at runtime via -e, then using set_by_lua to retrieve the value and eventually use in the resolver directive. I am using other environment variables for other purposes so I am confident I have the right syntax for defining and retrieving the variables.
I can hardcode an IP with the resolver directive and it works ok.
But when I try something like
resolver $resolver_value;
I get an error saying "host not found in resolver $resolver_value"
Am I trying to do something that's an unsupported use case?