docs: format custom loading/error pages

This commit is contained in:
Alexis Couvreur
2021-12-09 23:01:02 +01:00
committed by GitHub
parent 3178fdcc57
commit 327211cbbf

View File

@@ -23,8 +23,15 @@ Traefik middleware to start containers on demand.
### Plugin configuration
**Custom loading/error pages**
The `loadingpage` and `errorpage` keys in the plugin configuration can be used to override the default loading and error pages. The value should be a path where a template that can be parsed by Go's [html/template](https://pkg.go.dev/html/template) package can be found in the Traefik container. An example of both a loading page and an error page template can be found in the [pkg/pages/](pkg/pages/) directory in [loading.html](pkg/pages/loading.html) and [error.html](pkg/pages/error.html) respectively. The plugin will default to the built-in loading and error pages if these fields are omitted.
#### Custom loading/error pages
The `loadingpage` and `errorpage` keys in the plugin configuration can be used to override the default loading and error pages.
The value should be a path where a template that can be parsed by Go's [html/template](https://pkg.go.dev/html/template) package can be found in the Traefik container.
An example of both a loading page and an error page template can be found in the [pkg/pages/](pkg/pages/) directory in [loading.html](pkg/pages/loading.html) and [error.html](pkg/pages/error.html) respectively.
The plugin will default to the built-in loading and error pages if these fields are omitted.
**Example Configuration**
```yml