mirror of
				https://github.com/nsnail/Ocelot.git
				synced 2025-10-31 22:05:26 +08:00 
			
		
		
		
	Change port in Consul documentation (#418)
* Fix Consul default port the default port for the consul api is 8500 not 9500 - https://www.consul.io/docs/agent/options.html * Fix typo
This commit is contained in:
		| @@ -18,7 +18,7 @@ will be used. | |||||||
|  |  | ||||||
|     "ServiceDiscoveryProvider": { |     "ServiceDiscoveryProvider": { | ||||||
|         "Host": "localhost", |         "Host": "localhost", | ||||||
|         "Port": 9500 |         "Port": 8500 | ||||||
|     } |     } | ||||||
|  |  | ||||||
| In the future we can add a feature that allows ReRoute specfic configuration.  | In the future we can add a feature that allows ReRoute specfic configuration.  | ||||||
| @@ -49,9 +49,9 @@ A lot of people have asked me to implement a feature where Ocelot polls consul f | |||||||
|  |  | ||||||
|     "ServiceDiscoveryProvider": { |     "ServiceDiscoveryProvider": { | ||||||
|         "Host": "localhost", |         "Host": "localhost", | ||||||
|         "Port": 9500, |         "Port": 8500, | ||||||
|         "Type": "PollConsul", |         "Type": "PollConsul", | ||||||
|         "PollingInteral": 100 |         "PollingInterval": 100 | ||||||
|     } |     } | ||||||
|  |  | ||||||
| The polling interval is in milliseconds and tells Ocelot how often to call Consul for changes in service configuration. | The polling interval is in milliseconds and tells Ocelot how often to call Consul for changes in service configuration. | ||||||
| @@ -67,7 +67,7 @@ If you are using ACL with Consul Ocelot supports adding the X-Consul-Token heade | |||||||
|  |  | ||||||
|     "ServiceDiscoveryProvider": { |     "ServiceDiscoveryProvider": { | ||||||
|         "Host": "localhost", |         "Host": "localhost", | ||||||
|         "Port": 9500, |         "Port": 8500, | ||||||
|         "Token": "footoken" |         "Token": "footoken" | ||||||
|     } |     } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 JoJo2406
					JoJo2406