Open dradtke opened 4 years ago
To provide a little more context: I want to run Fabio on Nomad, which is already configured to talk to Consul with HTTPS over a Unix socket, and I want to be able to have Fabio reuse those settings.
I think in the spirit of fabio being zero-config, it's important that fabio picks up the CONSUL_HTTP_ADDR
environment variable when available. The consul api already does this when no address is provided in the config.
I've found that the CONSUL_HTTP_ADDR
environment variable is picked up when I run fabio with
args = ["-registry.consul.addr", ""]
My setup has most Consul communication happening over a Unix socket, and it looks like
registry.consul.addr
doesn't work when given a file path or aunix://
address. Is there a way to do this that I'm missing?