mirror of
				https://github.com/nsnail/Ocelot.git
				synced 2025-11-04 23:30:50 +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": {
 | 
			
		||||
        "Host": "localhost",
 | 
			
		||||
        "Port": 9500
 | 
			
		||||
        "Port": 8500
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
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": {
 | 
			
		||||
        "Host": "localhost",
 | 
			
		||||
        "Port": 9500,
 | 
			
		||||
        "Port": 8500,
 | 
			
		||||
        "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.
 | 
			
		||||
@@ -67,7 +67,7 @@ If you are using ACL with Consul Ocelot supports adding the X-Consul-Token heade
 | 
			
		||||
 | 
			
		||||
    "ServiceDiscoveryProvider": {
 | 
			
		||||
        "Host": "localhost",
 | 
			
		||||
        "Port": 9500,
 | 
			
		||||
        "Port": 8500,
 | 
			
		||||
        "Token": "footoken"
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user