Add more selective match to increase the regex precedence

This commit is contained in:
2023-02-15 14:00:52 +01:00
parent 0957ad5f1c
commit 71a8507928
9 changed files with 29 additions and 15 deletions

View File

@@ -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