fix ghost
This commit is contained in:
parent
8a917f6a4e
commit
bf6222e5a0
1 changed files with 4 additions and 4 deletions
|
|
@ -394,7 +394,7 @@ function fqdnLabelsForTraefik(string $uuid, Collection $domains, bool $is_force_
|
||||||
$middlewares->push('gzip');
|
$middlewares->push('gzip');
|
||||||
}
|
}
|
||||||
if (str($image)->contains('ghost')) {
|
if (str($image)->contains('ghost')) {
|
||||||
$middlewares->push('redir-ghost');
|
$middlewares->push("redir-ghost-{$uuid}");
|
||||||
}
|
}
|
||||||
if ($redirect_direction === 'non-www' && str($host)->startsWith('www.')) {
|
if ($redirect_direction === 'non-www' && str($host)->startsWith('www.')) {
|
||||||
$labels = $labels->merge($redirect_to_non_www);
|
$labels = $labels->merge($redirect_to_non_www);
|
||||||
|
|
@ -417,7 +417,7 @@ function fqdnLabelsForTraefik(string $uuid, Collection $domains, bool $is_force_
|
||||||
$middlewares->push('gzip');
|
$middlewares->push('gzip');
|
||||||
}
|
}
|
||||||
if (str($image)->contains('ghost')) {
|
if (str($image)->contains('ghost')) {
|
||||||
$middlewares->push('redir-ghost');
|
$middlewares->push("redir-ghost-{$uuid}");
|
||||||
}
|
}
|
||||||
if ($redirect_direction === 'non-www' && str($host)->startsWith('www.')) {
|
if ($redirect_direction === 'non-www' && str($host)->startsWith('www.')) {
|
||||||
$labels = $labels->merge($redirect_to_non_www);
|
$labels = $labels->merge($redirect_to_non_www);
|
||||||
|
|
@ -466,7 +466,7 @@ function fqdnLabelsForTraefik(string $uuid, Collection $domains, bool $is_force_
|
||||||
$middlewares->push('gzip');
|
$middlewares->push('gzip');
|
||||||
}
|
}
|
||||||
if (str($image)->contains('ghost')) {
|
if (str($image)->contains('ghost')) {
|
||||||
$middlewares->push('redir-ghost');
|
$middlewares->push("redir-ghost-{$uuid}");
|
||||||
}
|
}
|
||||||
if ($redirect_direction === 'non-www' && str($host)->startsWith('www.')) {
|
if ($redirect_direction === 'non-www' && str($host)->startsWith('www.')) {
|
||||||
$labels = $labels->merge($redirect_to_non_www);
|
$labels = $labels->merge($redirect_to_non_www);
|
||||||
|
|
@ -489,7 +489,7 @@ function fqdnLabelsForTraefik(string $uuid, Collection $domains, bool $is_force_
|
||||||
$middlewares->push('gzip');
|
$middlewares->push('gzip');
|
||||||
}
|
}
|
||||||
if (str($image)->contains('ghost')) {
|
if (str($image)->contains('ghost')) {
|
||||||
$middlewares->push('redir-ghost');
|
$middlewares->push("redir-ghost-{$uuid}");
|
||||||
}
|
}
|
||||||
if ($redirect_direction === 'non-www' && str($host)->startsWith('www.')) {
|
if ($redirect_direction === 'non-www' && str($host)->startsWith('www.')) {
|
||||||
$labels = $labels->merge($redirect_to_non_www);
|
$labels = $labels->merge($redirect_to_non_www);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue