Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix

Andras Bacsaid066b2086bea
diff --git a/app/Http/Livewire/Settings/Form.php b/app/Http/Livewire/Settings/Form.php
index 436090bc24..5f5e48df25 100644
--- a/app/Http/Livewire/Settings/Form.php
+++ b/app/Http/Livewire/Settings/Form.php
@@ -61,12 +61,15 @@ class Form extends Component
$url = Url::fromString($this->settings->fqdn);
$host = $url->getHost();
$schema = $url->getScheme();
+ $middlewares = [];
$entryPoints = [
0 => 'http',
];
if ($schema === 'https') {
$entryPoints[] = 'https';
+ $middlewares[] = 'redirect-to-https';
}
+
$traefik_dynamic_conf = [
'http' =>
[
@@ -77,6 +80,7 @@ class Form extends Component
'entryPoints' => $entryPoints,
'service' => 'coolify',
'rule' => "Host(`{$host}`)",
+ 'middlewares' => $middlewares,
],
],
'services' =>