1
0
Fork 0

Update routing syntax

Co-authored-by: Tom Moulard <tom.moulard@traefik.io>
This commit is contained in:
Antoine 2022-11-28 15:48:05 +01:00 committed by GitHub
parent b93141992e
commit 4d86668af3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 2484 additions and 2085 deletions

View file

@ -9,7 +9,7 @@
"redirect-web-to-websecure"
],
"service": "noop@internal",
"rule": "HostRegexp(`{host:.+}`)"
"rule": "HostRegexp(`^.+$`)"
}
},
"middlewares": {
@ -27,4 +27,4 @@
},
"tcp": {},
"tls": {}
}
}

View file

@ -9,7 +9,7 @@
"redirect-web-to-443"
],
"service": "noop@internal",
"rule": "HostRegexp(`{host:.+}`)"
"rule": "HostRegexp(`^.+$`)"
}
},
"middlewares": {
@ -27,4 +27,4 @@
},
"tcp": {},
"tls": {}
}
}

View file

@ -9,7 +9,7 @@
"redirect-web-to-websecure"
],
"service": "noop@internal",
"rule": "HostRegexp(`{host:.+}`)"
"rule": "HostRegexp(`^.+$`)"
}
},
"middlewares": {
@ -27,4 +27,4 @@
},
"tcp": {},
"tls": {}
}
}

View file

@ -137,7 +137,7 @@ func (i *Provider) redirection(ctx context.Context, cfg *dynamic.Configuration)
mdName := "redirect-" + rtName
rt := &dynamic.Router{
Rule: "HostRegexp(`{host:.+}`)",
Rule: "HostRegexp(`^.+$`)",
EntryPoints: []string{name},
Middlewares: []string{mdName},
Service: "noop@internal",