Skip to content

Commit

Permalink
docs(traefik): fix dynamic configuration example (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
tandy-1000 authored Apr 7, 2023
1 parent d792c60 commit 57c50b8
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions plugins/traefik/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,24 @@ http:
middlewares:
my-sablier:
plugin:
sablierUrl: http://sablier:10000 # The sablier URL service, must be reachable from the Traefik instance
names: whoami,nginx # Comma separated names of containers/services/deployments etc.
sessionDuration: 1m # The session duration after which containers/services/deployments instances are shutdown
# You can only use one strategy at a time
# To do so, only declare `dynamic` or `blocking`

# Dynamic strategy, provides the waiting webui
dynamic:
displayName: My Title # (Optional) Defaults to the middleware name
showDetails: true # (Optional) Set to true or false to show details specifcally for this middleware, unset to use Sablier server defaults
theme: hacker-terminal # (Optional) The theme to use
refreshFrequency: 5s # (Optional) The loading page refresh frequency

# Blocking strategy, waits until services are up and running
# but will not wait more than `timeout`
# blocking:
# timeout: 1m
sablier:
sablierUrl: http://sablier:10000 # The sablier URL service, must be reachable from the Traefik instance
names: whoami,nginx # Comma separated names of containers/services/deployments etc.
sessionDuration: 1m # The session duration after which containers/services/deployments instances are shutdown
# You can only use one strategy at a time
# To do so, only declare `dynamic` or `blocking`

# Dynamic strategy, provides the waiting webui
dynamic:
displayName: My Title # (Optional) Defaults to the middleware name
showDetails: true # (Optional) Set to true or false to show details specifcally for this middleware, unset to use Sablier server defaults
theme: hacker-terminal # (Optional) The theme to use
refreshFrequency: 5s # (Optional) The loading page refresh frequency

# Blocking strategy, waits until services are up and running
# but will not wait more than `timeout`
# blocking:
# timeout: 1m
```

You can also checkout the End to End tests here: [e2e](./e2e/).
Expand Down Expand Up @@ -176,4 +177,4 @@ services:
- './dynamic-config.yml:/etc/traefik/dynamic-config.yml'
```

But I recommend you to use the [`e2e`](./e2e/) folder.
But I recommend you to use the [`e2e`](./e2e/) folder.

0 comments on commit 57c50b8

Please sign in to comment.