weibocom / nginx-upsync-module

For http protocol. nginx-upsync-module, sync upstreams from consul or etcd and so on, dynamiclly modify backend-servers attributes(weight, max_fails, down...), needn't reload nginx
1.83k stars 391 forks source link

unix domain socket support #140

Open gfrankliu opened 7 years ago

gfrankliu commented 7 years ago

consul supports unix domain socket instead tcp port 8500 for http. https://www.consul.io/docs/agent/options.html#addresses Can upsync supports that? e.g.: instead of upsync 127.0.0.1:8500/v1/kv/upstreams/test can we do: upsync unix:///path/to/socket uri=/v1/kv/upstreams/test

gfrankliu commented 7 years ago

curl seems to support it http://superuser.com/questions/834307/can-curl-send-requests-to-sockets

xiaokai-wang commented 7 years ago

That will be cool.