我无法将领事代理与.net core 2.2应用连接。
这是我的consul.json
],
"GlobalConfiguration": {
"BaseUrl": "https://localhost:5000"
,"ServiceDiscoveryProvider": {
"Host": "localhost",
"Port": 8500,
"Type": "Consul"
}
}
和代理输出
$ ./consul.exe agent -dev
==> Starting Consul agent...
==> Consul agent running!
Version: 'v1.4.0'
Node ID: 'c73fa61b-3144-d3f9-1f44-c3dd5f9ac5ba'
Node name: 'NB-0201'
Datacenter: 'dc1' (Segment: '<all>')
Server: true (Bootstrap: false)
Client Addr: [127.0.0.1] (HTTP: 8500, HTTPS: -1, gRPC: 8502, DNS: 8600)
Cluster Addr: 127.0.0.1 (LAN: 8301, WAN: 8302)
Encrypt: Gossip: false, TLS-Outgoing: false, TLS-Incoming: false
网关的所有代码 https://github.com/barron9/ocelotgateway/tree/master/gateway