diff --git a/app/Models/InstanceSettings.php b/app/Models/InstanceSettings.php index 65cbde08a..fcc4c7e25 100644 --- a/app/Models/InstanceSettings.php +++ b/app/Models/InstanceSettings.php @@ -38,6 +38,8 @@ class InstanceSettings extends Model implements SendsEmail return $envDefined; } $url = Url::fromString(Request::getSchemeAndHttpHost()); + $scheme = $url->getScheme(); + ray($url); $port = $url->getPort(); if ($port) { return 6001; diff --git a/bootstrap/helpers/proxy.php b/bootstrap/helpers/proxy.php index acd745c53..3fa657216 100644 --- a/bootstrap/helpers/proxy.php +++ b/bootstrap/helpers/proxy.php @@ -229,9 +229,7 @@ function setup_dynamic_configuration() $traefik_dynamic_conf['http']['routers']['coolify-http']['middlewares'] = [ 0 => 'redirect-to-https@docker', ]; - $traefik_dynamic_conf['http']['routers']['coolify-realtime-ws']['middlewares'] = [ - 0 => 'redirect-to-https@docker', - ]; + $traefik_dynamic_conf['http']['routers']['coolify-https'] = [ 'entryPoints' => [ 0 => 'https',