Entry point redirection and default routers configuration
Co-authored-by: Julien Salleyron <julien.salleyron@gmail.com> Co-authored-by: Mathieu Lonjaret <mathieu.lonjaret@gmail.com>
This commit is contained in:
parent
93a7af270f
commit
a6040c623b
46 changed files with 1016 additions and 126 deletions
|
@ -41,7 +41,8 @@
|
|||
},
|
||||
"services": {
|
||||
"api": {},
|
||||
"dashboard": {}
|
||||
"dashboard": {},
|
||||
"noop": {}
|
||||
}
|
||||
},
|
||||
"tcp": {},
|
||||
|
|
|
@ -11,7 +11,8 @@
|
|||
}
|
||||
},
|
||||
"services": {
|
||||
"api": {}
|
||||
"api": {},
|
||||
"noop": {}
|
||||
}
|
||||
},
|
||||
"tcp": {},
|
||||
|
|
|
@ -2,7 +2,8 @@
|
|||
"http": {
|
||||
"services": {
|
||||
"api": {},
|
||||
"dashboard": {}
|
||||
"dashboard": {},
|
||||
"noop": {}
|
||||
}
|
||||
},
|
||||
"tcp": {},
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
{
|
||||
"http": {
|
||||
"services": {
|
||||
"api": {}
|
||||
"api": {},
|
||||
"noop": {}
|
||||
}
|
||||
},
|
||||
"tcp": {},
|
||||
|
|
|
@ -74,6 +74,7 @@
|
|||
"services": {
|
||||
"api": {},
|
||||
"dashboard": {},
|
||||
"noop": {},
|
||||
"ping": {},
|
||||
"prometheus": {},
|
||||
"rest": {}
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
"services": {
|
||||
"api": {},
|
||||
"dashboard": {},
|
||||
"noop": {},
|
||||
"ping": {},
|
||||
"prometheus": {},
|
||||
"rest": {}
|
||||
|
|
36
pkg/provider/traefik/fixtures/models.json
Normal file
36
pkg/provider/traefik/fixtures/models.json
Normal file
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
"http": {
|
||||
"services": {
|
||||
"noop": {}
|
||||
},
|
||||
"models": {
|
||||
"websecure": {
|
||||
"middlewares": [
|
||||
"test"
|
||||
],
|
||||
"tls": {
|
||||
"options": "opt",
|
||||
"certResolver": "le",
|
||||
"domains": [
|
||||
{
|
||||
"main": "mainA",
|
||||
"sans": [
|
||||
"sanA1",
|
||||
"sanA2"
|
||||
]
|
||||
},
|
||||
{
|
||||
"main": "mainB",
|
||||
"sans": [
|
||||
"sanB1",
|
||||
"sanB2"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"tcp": {},
|
||||
"tls": {}
|
||||
}
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"http": {
|
||||
"services": {
|
||||
"noop": {},
|
||||
"ping": {}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
}
|
||||
},
|
||||
"services": {
|
||||
"noop": {},
|
||||
"ping": {}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"http": {
|
||||
"services": {
|
||||
"noop": {},
|
||||
"prometheus": {}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
}
|
||||
},
|
||||
"services": {
|
||||
"noop": {},
|
||||
"prometheus": {}
|
||||
}
|
||||
},
|
||||
|
|
30
pkg/provider/traefik/fixtures/redirection.json
Normal file
30
pkg/provider/traefik/fixtures/redirection.json
Normal file
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
"http": {
|
||||
"routers": {
|
||||
"web-to-websecure": {
|
||||
"entryPoints": [
|
||||
"web"
|
||||
],
|
||||
"middlewares": [
|
||||
"redirect-web-to-websecure"
|
||||
],
|
||||
"service": "noop@internal",
|
||||
"rule": "HostRegexp(`{host:.+}`)"
|
||||
}
|
||||
},
|
||||
"middlewares": {
|
||||
"redirect-web-to-websecure": {
|
||||
"redirectScheme": {
|
||||
"scheme": "https",
|
||||
"port": "443",
|
||||
"permanent": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"services": {
|
||||
"noop": {}
|
||||
}
|
||||
},
|
||||
"tcp": {},
|
||||
"tls": {}
|
||||
}
|
|
@ -11,6 +11,7 @@
|
|||
}
|
||||
},
|
||||
"services": {
|
||||
"noop": {},
|
||||
"rest": {}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"http": {
|
||||
"services": {
|
||||
"noop": {},
|
||||
"rest": {}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue