a6040c623b
Co-authored-by: Julien Salleyron <julien.salleyron@gmail.com> Co-authored-by: Mathieu Lonjaret <mathieu.lonjaret@gmail.com>
50 lines
No EOL
1 KiB
JSON
50 lines
No EOL
1 KiB
JSON
{
|
|
"http": {
|
|
"routers": {
|
|
"api": {
|
|
"entryPoints": [
|
|
"traefik"
|
|
],
|
|
"service": "api@internal",
|
|
"rule": "PathPrefix(`/api`)",
|
|
"priority": 2147483646
|
|
},
|
|
"dashboard": {
|
|
"entryPoints": [
|
|
"traefik"
|
|
],
|
|
"middlewares": [
|
|
"dashboard_redirect@internal",
|
|
"dashboard_stripprefix@internal"
|
|
],
|
|
"service": "dashboard@internal",
|
|
"rule": "PathPrefix(`/`)",
|
|
"priority": 2147483645
|
|
}
|
|
},
|
|
"middlewares": {
|
|
"dashboard_redirect": {
|
|
"redirectRegex": {
|
|
"regex": "^(http:\\/\\/[^:\\/]+(:\\d+)?)\\/$",
|
|
"replacement": "${1}/dashboard/",
|
|
"permanent": true
|
|
}
|
|
},
|
|
"dashboard_stripprefix": {
|
|
"stripPrefix": {
|
|
"prefixes": [
|
|
"/dashboard/",
|
|
"/dashboard"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"services": {
|
|
"api": {},
|
|
"dashboard": {},
|
|
"noop": {}
|
|
}
|
|
},
|
|
"tcp": {},
|
|
"tls": {}
|
|
} |