service := web.NewService(
web.Name(""),
web.Address(""),
web.Advertise(""),
web.RegisterTTL(time.Second*30),
web.Registry(reg),
)
where reg:= registry.newRegistry(注册表)
func registryOptions(ops *registry.Options) {
ops.Timeout = time.Second * 30
ops.Secure = true
ops.TLSConfig = &tls.Config{InsecureSkipVerify: true}
}
我正在使用-Registery =领事开始服务 Service在Docker容器中运行。 尽管服务在领事上注册,但我仍在遇到问题。
Consul.Watch:观看(类型:服务)错误:意外响应代码:400(客户端向HTTPS Server发送HTTP请求 tls配置设置了Consul。
你解决这个问题吗?
我认为我有同样的问题