You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -277,12 +282,15 @@ Value of Go's `runtime.GOMAXPROCS()`
277
282
278
283
_default: equals to `runtime.NumCPU()`_
279
284
285
+
---
280
286
#### routing.file.path `string`
281
287
Location of [routing configuration file](#schema).
282
288
#### routing.file.watch `bool`
283
289
Subscribe to changes made to the routing configuration file which would give you the full power of dill's dynamic routing capabilities.
284
290
285
291
_default: `true`_
292
+
293
+
---
286
294
#### routing.http.endpoint `string`
287
295
Endpoint which [http provider](#http) will poll for routing configuration
288
296
#### routing.http.poll_interval `duration`
@@ -293,8 +301,30 @@ _default: `5s`_
293
301
Maximum time [http provider](#http) will wait when fetching routing configuration
294
302
295
303
_default: `5s`_
304
+
305
+
---
296
306
#### routing.consul.address `string`
297
307
Consul address from which `dill` will fetch the updates and build the routing table.
308
+
#### routing.consul.token `string`
309
+
Token giving access to Consul API. Required ACLs `node:read,service:read`
310
+
311
+
_Optional_
312
+
#### routing.consul.datacenter `string`
313
+
Defines what datacenter will be queried when building routing table.
314
+
315
+
_Optional. If not provided `dill` uses Consul defaults._
316
+
#### routing.consul.namespace `string`
317
+
Defines what namespace will be queried when building routing table. Namespaces are available only for Consul Enterprise users.
318
+
319
+
_Optional. If not provided `dill` uses Consul defaults._
320
+
#### routing.consul.wait `duration`
321
+
Defines how long [blocking API query](https://developer.hashicorp.com/consul/api-docs/features/blocking) will wait for a potential change using long polling.
322
+
323
+
_Optional. If not provided `dill` uses Consul defaults._
324
+
#### routing.consul.consistency_mode `string`
325
+
Defines what [consistency mode](https://developer.hashicorp.com/consul/api-docs/features/consistency) to use when `dill` fetches the updates.
326
+
327
+
_Optional. Allowed values: `stale`, `consistent`, `leader`. If not provided `dill` uses Consul defaults._
298
328
### Formats
299
329
Configuration is powered by [Viper](https://github.com/spf13/viper) so it's possible to use format that suits you best.
0 commit comments