You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2019/12/12 09:20:42 UTC

[GitHub] [incubator-apisix] shuaijinchao opened a new issue #963: bug: custom etcd host is invalid.

shuaijinchao opened a new issue #963: bug: custom etcd host is invalid.
URL: https://github.com/apache/incubator-apisix/issues/963
 
 
   [lua/apisix/core/etcd.lua](https://github.com/apache/incubator-apisix/blob/master/lua/apisix/core/etcd.lua#L35) When calling `lua-resty-etcd` for initialization, the configuration file passed in is the structure defined in [conf/config.yaml](https://github.com/apache/incubator-apisix/blob/master/conf/config.yaml#L71), but the etcd structure defined in config is connected to the address key Is `host`, and the key accepted in [lua-resty-etcd](https://github.com/iresty/lua-resty-etcd/blob/master/lib/resty/etcd/v2.lua#L49) is `http_host`, so the current configuration is invalid.
   
   When initializing etcd, you can change the configuration structure from `etcd_conf.host` to` etcd_conf.http_host` to make it take effect.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services