Fix redirect problem on dashboard + docs/tests on [web]
This commit is contained in:
parent
d0f3ad6024
commit
e2c5f3712f
47 changed files with 134 additions and 88 deletions
|
@ -161,7 +161,7 @@ curl -s "http://localhost:8080/health" | jq .
|
|||
// average response time in seconds
|
||||
"average_response_time_sec": 0.8648016000000001,
|
||||
|
||||
// request statistics [requires --web.statistics to be set]
|
||||
// request statistics [requires --statistics to be set]
|
||||
// ten most recent requests with 4xx and 5xx status codes
|
||||
"recent_errors": [
|
||||
{
|
||||
|
|
|
@ -35,6 +35,15 @@ address = ":8080"
|
|||
# Default: false
|
||||
#
|
||||
readOnly = true
|
||||
|
||||
|
||||
# Set the root path for webui and API
|
||||
#
|
||||
# Deprecated
|
||||
# Optional
|
||||
#
|
||||
# path = "/mypath"
|
||||
#
|
||||
```
|
||||
|
||||
## Web UI
|
||||
|
@ -375,3 +384,35 @@ curl -s "http://localhost:8080/api" | jq .
|
|||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Path
|
||||
|
||||
As web is deprecated, you can handle the `Path` option like this
|
||||
|
||||
```toml
|
||||
[entrypoints.http]
|
||||
address=":80"
|
||||
|
||||
[entrypoints.dashboard]
|
||||
address=":8080"
|
||||
|
||||
[entrypoints.api]
|
||||
address=":8081"
|
||||
|
||||
#Activate API and Dashboard
|
||||
[api]
|
||||
entrypoint="api"
|
||||
|
||||
[file]
|
||||
[backends]
|
||||
[backends.backend1]
|
||||
[backends.backend1.servers.server1]
|
||||
url = "http://127.0.0.1:8081"
|
||||
|
||||
[frontends]
|
||||
[frontends.frontend1]
|
||||
entrypoints=["dashboard"]
|
||||
backend = "backend1"
|
||||
[frontends.frontend1.routes.test_1]
|
||||
rule = "PathPrefixStrip:/yourprefix;PathPrefix:/yourprefix"
|
||||
```
|
|
@ -135,7 +135,7 @@ Users can be specified directly in the toml file, or indirectly by referencing a
|
|||
[entryPoints]
|
||||
[entryPoints.http]
|
||||
address = ":80"
|
||||
[entryPoints.http.auth.basic]
|
||||
[entryPoints.http.auth.digest]
|
||||
users = ["test:traefik:a2688e031edb4be6a3797f3882655c05 ", "test2:traefik:518845800f9e2bfb1f1f740ec24f074e"]
|
||||
usersFile = "/path/to/.htdigest"
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue