mirror of
https://github.com/sablierapp/sablier.git
synced 2026-01-04 12:05:05 +01:00
docs: format custom loading/error pages
This commit is contained in:
11
README.md
11
README.md
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user