mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-06-20 01:18:16 +08:00
dont use dynamic routing unless service discovery provider explictly set and log that we are going to use dynamic info (#437)
* #428 dont use dynamic routing unless service discovery provider explictly set and log that we are going to use dynamic info * #428 fixed tests that were failing due to not maintaining backwards compat with config for service discovery
This commit is contained in:
@ -18,7 +18,8 @@ will be used.
|
||||
|
||||
"ServiceDiscoveryProvider": {
|
||||
"Host": "localhost",
|
||||
"Port": 8500
|
||||
"Port": 8500,
|
||||
"Type": "Consul"
|
||||
}
|
||||
|
||||
In the future we can add a feature that allows ReRoute specfic configuration.
|
||||
@ -136,8 +137,8 @@ The config might look something like
|
||||
"RequestIdKey": null,
|
||||
"ServiceDiscoveryProvider": {
|
||||
"Host": "localhost",
|
||||
"Port": 8510,
|
||||
"Type": null,
|
||||
"Port": 8500,
|
||||
"Type": "Consul",
|
||||
"Token": null,
|
||||
"ConfigurationKey": null
|
||||
},
|
||||
|
Reference in New Issue
Block a user