Add internal provider
Co-authored-by: Julien Salleyron <julien.salleyron@gmail.com>
This commit is contained in:
parent
2ee2e29262
commit
424e2a9439
71 changed files with 2523 additions and 1469 deletions
|
@ -0,0 +1,49 @@
|
|||
{
|
||||
"http": {
|
||||
"routers": {
|
||||
"api": {
|
||||
"entryPoints": [
|
||||
"traefik"
|
||||
],
|
||||
"service": "api@internal",
|
||||
"rule": "PathPrefix(`/api`)",
|
||||
"priority": 9223372036854775806
|
||||
},
|
||||
"dashboard": {
|
||||
"entryPoints": [
|
||||
"traefik"
|
||||
],
|
||||
"middlewares": [
|
||||
"dashboard_redirect@internal",
|
||||
"dashboard_stripprefix@internal"
|
||||
],
|
||||
"service": "dashboard@internal",
|
||||
"rule": "PathPrefix(`/`)",
|
||||
"priority": 9223372036854775805
|
||||
}
|
||||
},
|
||||
"middlewares": {
|
||||
"dashboard_redirect": {
|
||||
"redirectRegex": {
|
||||
"regex": "^(http:\\/\\/[^:]+(:\\d+)?)/$",
|
||||
"replacement": "${1}/dashboard/",
|
||||
"permanent": true
|
||||
}
|
||||
},
|
||||
"dashboard_stripprefix": {
|
||||
"stripPrefix": {
|
||||
"prefixes": [
|
||||
"/dashboard/",
|
||||
"/dashboard"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"services": {
|
||||
"api": {},
|
||||
"dashboard": {}
|
||||
}
|
||||
},
|
||||
"tcp": {},
|
||||
"tls": {}
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
"http": {
|
||||
"routers": {
|
||||
"api": {
|
||||
"entryPoints": [
|
||||
"traefik"
|
||||
],
|
||||
"service": "api@internal",
|
||||
"rule": "PathPrefix(`/api`)",
|
||||
"priority": 9223372036854775806
|
||||
}
|
||||
},
|
||||
"services": {
|
||||
"api": {}
|
||||
}
|
||||
},
|
||||
"tcp": {},
|
||||
"tls": {}
|
||||
}
|
10
pkg/provider/traefik/fixtures/api_secure_with_dashboard.json
Normal file
10
pkg/provider/traefik/fixtures/api_secure_with_dashboard.json
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"http": {
|
||||
"services": {
|
||||
"api": {},
|
||||
"dashboard": {}
|
||||
}
|
||||
},
|
||||
"tcp": {},
|
||||
"tls": {}
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"http": {
|
||||
"services": {
|
||||
"api": {}
|
||||
}
|
||||
},
|
||||
"tcp": {},
|
||||
"tls": {}
|
||||
}
|
76
pkg/provider/traefik/fixtures/full_configuration.json
Normal file
76
pkg/provider/traefik/fixtures/full_configuration.json
Normal file
|
@ -0,0 +1,76 @@
|
|||
{
|
||||
"http": {
|
||||
"routers": {
|
||||
"api": {
|
||||
"entryPoints": [
|
||||
"traefik"
|
||||
],
|
||||
"service": "api@internal",
|
||||
"rule": "PathPrefix(`/api`)",
|
||||
"priority": 9223372036854775806
|
||||
},
|
||||
"dashboard": {
|
||||
"entryPoints": [
|
||||
"traefik"
|
||||
],
|
||||
"middlewares": [
|
||||
"dashboard_redirect@internal",
|
||||
"dashboard_stripprefix@internal"
|
||||
],
|
||||
"service": "dashboard@internal",
|
||||
"rule": "PathPrefix(`/`)",
|
||||
"priority": 9223372036854775805
|
||||
},
|
||||
"ping": {
|
||||
"entryPoints": [
|
||||
"test"
|
||||
],
|
||||
"service": "ping@internal",
|
||||
"rule": "PathPrefix(`/ping`)",
|
||||
"priority": 9223372036854775807
|
||||
},
|
||||
"prometheus": {
|
||||
"entryPoints": [
|
||||
"test"
|
||||
],
|
||||
"service": "prometheus@internal",
|
||||
"rule": "PathPrefix(`/metrics`)",
|
||||
"priority": 9223372036854775807
|
||||
},
|
||||
"rest": {
|
||||
"entryPoints": [
|
||||
"traefik"
|
||||
],
|
||||
"service": "rest@internal",
|
||||
"rule": "PathPrefix(`/api/providers`)",
|
||||
"priority": 9223372036854775807
|
||||
}
|
||||
},
|
||||
"middlewares": {
|
||||
"dashboard_redirect": {
|
||||
"redirectRegex": {
|
||||
"regex": "^(http:\\/\\/[^:]+(:\\d+)?)/$",
|
||||
"replacement": "${1}/dashboard/",
|
||||
"permanent": true
|
||||
}
|
||||
},
|
||||
"dashboard_stripprefix": {
|
||||
"stripPrefix": {
|
||||
"prefixes": [
|
||||
"/dashboard/",
|
||||
"/dashboard"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"services": {
|
||||
"api": {},
|
||||
"dashboard": {},
|
||||
"ping": {},
|
||||
"prometheus": {},
|
||||
"rest": {}
|
||||
}
|
||||
},
|
||||
"tcp": {},
|
||||
"tls": {}
|
||||
}
|
13
pkg/provider/traefik/fixtures/full_configuration_secure.json
Normal file
13
pkg/provider/traefik/fixtures/full_configuration_secure.json
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"http": {
|
||||
"services": {
|
||||
"api": {},
|
||||
"dashboard": {},
|
||||
"ping": {},
|
||||
"prometheus": {},
|
||||
"rest": {}
|
||||
}
|
||||
},
|
||||
"tcp": {},
|
||||
"tls": {}
|
||||
}
|
9
pkg/provider/traefik/fixtures/ping_custom.json
Normal file
9
pkg/provider/traefik/fixtures/ping_custom.json
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"http": {
|
||||
"services": {
|
||||
"ping": {}
|
||||
}
|
||||
},
|
||||
"tcp": {},
|
||||
"tls": {}
|
||||
}
|
19
pkg/provider/traefik/fixtures/ping_simple.json
Normal file
19
pkg/provider/traefik/fixtures/ping_simple.json
Normal file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
"http": {
|
||||
"routers": {
|
||||
"ping": {
|
||||
"entryPoints": [
|
||||
"test"
|
||||
],
|
||||
"service": "ping@internal",
|
||||
"rule": "PathPrefix(`/ping`)",
|
||||
"priority": 9223372036854775807
|
||||
}
|
||||
},
|
||||
"services": {
|
||||
"ping": {}
|
||||
}
|
||||
},
|
||||
"tcp": {},
|
||||
"tls": {}
|
||||
}
|
9
pkg/provider/traefik/fixtures/prometheus_custom.json
Normal file
9
pkg/provider/traefik/fixtures/prometheus_custom.json
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"http": {
|
||||
"services": {
|
||||
"prometheus": {}
|
||||
}
|
||||
},
|
||||
"tcp": {},
|
||||
"tls": {}
|
||||
}
|
19
pkg/provider/traefik/fixtures/prometheus_simple.json
Normal file
19
pkg/provider/traefik/fixtures/prometheus_simple.json
Normal file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
"http": {
|
||||
"routers": {
|
||||
"prometheus": {
|
||||
"entryPoints": [
|
||||
"test"
|
||||
],
|
||||
"service": "prometheus@internal",
|
||||
"rule": "PathPrefix(`/metrics`)",
|
||||
"priority": 9223372036854775807
|
||||
}
|
||||
},
|
||||
"services": {
|
||||
"prometheus": {}
|
||||
}
|
||||
},
|
||||
"tcp": {},
|
||||
"tls": {}
|
||||
}
|
19
pkg/provider/traefik/fixtures/rest_insecure.json
Normal file
19
pkg/provider/traefik/fixtures/rest_insecure.json
Normal file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
"http": {
|
||||
"routers": {
|
||||
"rest": {
|
||||
"entryPoints": [
|
||||
"traefik"
|
||||
],
|
||||
"service": "rest@internal",
|
||||
"rule": "PathPrefix(`/api/providers`)",
|
||||
"priority": 9223372036854775807
|
||||
}
|
||||
},
|
||||
"services": {
|
||||
"rest": {}
|
||||
}
|
||||
},
|
||||
"tcp": {},
|
||||
"tls": {}
|
||||
}
|
9
pkg/provider/traefik/fixtures/rest_secure.json
Normal file
9
pkg/provider/traefik/fixtures/rest_secure.json
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"http": {
|
||||
"services": {
|
||||
"rest": {}
|
||||
}
|
||||
},
|
||||
"tcp": {},
|
||||
"tls": {}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue