NGINX Open Source TCP Load Balancing - service discovery
Francis Daly
francis at daoine.org
Tue Oct 18 07:14:38 UTC 2016
On Mon, Oct 17, 2016 at 02:44:00PM -0700, Matthew Ceroni wrote:
Hi there,
Untested, but...
> https://www.nginx.com/blog/dns-service-discovery-nginx-plus/
> The issue is around where to set the variable. I have tried setting it in
> the upstream block but that errors saying set is not valid in this context.
> Tried setting it in the stream context, same error.
The documentation suggests that "set" is not available within the
"stream" system.
So you need a different way of setting a variable.
Perhaps "map" will do what you want?
f
--
Francis Daly francis at daoine.org
More information about the nginx
mailing list