Skip to content

Commit

Permalink
Merge pull request #864 from blake/blake/fix-consul-kv-example-cmds
Browse files Browse the repository at this point in the history
Fix example commands in registry.consul.kvpath
  • Loading branch information
nathanejohnson authored Apr 5, 2022
2 parents 2b9517d + 22b5202 commit 5bbc23e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/content/ref/registry.consul.kvpath.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ the routing table. This allows for manual overrides and weighted
round-robin routes.

As of version 1.5.7 fabio will treat the kv path as a prefix and
combine the values of the key itself and all its subkeys in
combine the values of the key itself and all its subkeys in
alphabetical order.

To see all updates you may want to set [`-log.routes.format`](/ref/log.routes.format/)
Expand All @@ -19,13 +19,13 @@ You can modify the content of the routes with the `consul` tool or via
the [Consul API](https://www.consul.io/api/index.html):

```
consul put fabio/config "route add svc /maint http://5.6.7.8:5000\nroute add svc / http://1.2.3.4:5000\n"
consul kv put fabio/config "route add svc /maint http://5.6.7.8:5000\nroute add svc / http://1.2.3.4:5000\n"
# fabio >= 1.5.7 supports prefix match
consul put fabio/config/maint "route add svc /maint http://5.6.7.8:5000"
consul put fabio/config/catchall "route add svc / http://1.2.3.4:5000"
consul kv put fabio/config/maint "route add svc /maint http://5.6.7.8:5000"
consul kv put fabio/config/catchall "route add svc / http://1.2.3.4:5000"
consul delete fabio/config/maint
consul kv delete fabio/config/maint
```

The default is
Expand Down

0 comments on commit 5bbc23e

Please sign in to comment.