Add more selective match to increase the regex precedence
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
http:
|
||||
routers:
|
||||
cockpit:
|
||||
rule: "PathPrefix(`/cockpit`)"
|
||||
rule: "Host(`{{ vault_domain }}`) && (PathPrefix(`/cockpit/`) || Path(`/cockpit`))"
|
||||
entryPoints: https
|
||||
middlewares:
|
||||
- cockpit-stripprefix
|
||||
- force-trailing-slash
|
||||
service: cockpit
|
||||
tls:
|
||||
certresolver: wildcard
|
||||
|
||||
Reference in New Issue
Block a user