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.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
Refactor StartSentinel to ensure endpoint uses HTTPS
Andras Bacsai740419806eb4
diff --git a/app/Actions/Server/StartSentinel.php b/app/Actions/Server/StartSentinel.phpindex a52fb41258..e7c613eb00 100644--- a/app/Actions/Server/StartSentinel.php+++ b/app/Actions/Server/StartSentinel.php@@ -21,14 +21,12 @@ class StartSentinel$endpoint = InstanceSettings::get()->fqdn;if (isDev()) {$endpoint = 'http://host.docker.internal:8000';- } else {- if (str($endpoint)->startsWith('http')) {- throw new \Exception('You should use https to run Sentinel.');- }}if (! $endpoint) {throw new \Exception('You should set FQDN in Instance Settings.');}+ // Ensure the endpoint is using HTTPS+ $endpoint = str($endpoint)->replace('http://', 'https://')->value();$environments = ['TOKEN' => $token,'ENDPOINT' => $endpoint,