Merge pull request #2625 from LEstradioto/fix-stripprefix-http

fix: stripprefix middleware correctly labeled to http
This commit is contained in:
Andras Bacsai 2024-06-24 11:44:02 +02:00 committed by GitHub
commit 837545f4e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -458,7 +458,7 @@ function fqdnLabelsForTraefik(string $uuid, Collection $domains, bool $is_force_
$middlewares = collect([]);
if ($is_stripprefix_enabled && ! str($image)->contains('ghost')) {
$labels->push("traefik.http.middlewares.{$http_label}-stripprefix.stripprefix.prefixes={$path}");
$middlewares->push("{$https_label}-stripprefix");
$middlewares->push("{$http_label}-stripprefix");
}
if ($is_gzip_enabled) {
$middlewares->push('gzip');