mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-18 04:59:31 +00:00
fix
This commit is contained in:
@@ -61,12 +61,15 @@ class Form extends Component
|
|||||||
$url = Url::fromString($this->settings->fqdn);
|
$url = Url::fromString($this->settings->fqdn);
|
||||||
$host = $url->getHost();
|
$host = $url->getHost();
|
||||||
$schema = $url->getScheme();
|
$schema = $url->getScheme();
|
||||||
|
$middlewares = [];
|
||||||
$entryPoints = [
|
$entryPoints = [
|
||||||
0 => 'http',
|
0 => 'http',
|
||||||
];
|
];
|
||||||
if ($schema === 'https') {
|
if ($schema === 'https') {
|
||||||
$entryPoints[] = 'https';
|
$entryPoints[] = 'https';
|
||||||
|
$middlewares[] = 'redirect-to-https';
|
||||||
}
|
}
|
||||||
|
|
||||||
$traefik_dynamic_conf = [
|
$traefik_dynamic_conf = [
|
||||||
'http' =>
|
'http' =>
|
||||||
[
|
[
|
||||||
@@ -77,6 +80,7 @@ class Form extends Component
|
|||||||
'entryPoints' => $entryPoints,
|
'entryPoints' => $entryPoints,
|
||||||
'service' => 'coolify',
|
'service' => 'coolify',
|
||||||
'rule' => "Host(`{$host}`)",
|
'rule' => "Host(`{$host}`)",
|
||||||
|
'middlewares' => $middlewares,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'services' =>
|
'services' =>
|
||||||
|
|||||||
Reference in New Issue
Block a user