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
updates
Andras Bacsai35b9ce4ff06e
diff --git a/database/migrations/2023_03_20_112814_create_instance_settings_table.php b/database/migrations/2023_03_20_112814_create_instance_settings_table.phpindex 2432d02442..8d30c2b2c1 100644--- a/database/migrations/2023_03_20_112814_create_instance_settings_table.php+++ b/database/migrations/2023_03_20_112814_create_instance_settings_table.php@@ -13,6 +13,7 @@ return new class extends Migration{Schema::create('instance_settings', function (Blueprint $table) {$table->id();+ $table->string('public_ip_address')->nullable();$table->string('fqdn')->nullable();$table->string('wildcard_domain')->nullable();$table->string('default_redirect_404')->nullable();diff --git a/database/seeders/ProductionSeeder.php b/database/seeders/ProductionSeeder.phpindex 3c66a7dc1a..50aa2fefa0 100644--- a/database/seeders/ProductionSeeder.php+++ b/database/seeders/ProductionSeeder.php@@ -13,6 +13,7 @@ use App\Models\Server;use App\Models\StandaloneDocker;use App\Models\Team;use Illuminate\Database\Seeder;+use Illuminate\Support\Facades\Process;use Illuminate\Support\Facades\Storage;class ProductionSeeder extends Seeder@@ -105,5 +106,16 @@ class ProductionSeeder extends Seeder'server_id' => 0,]);}+ try {+ $ip = Process::run('curl -4s https://ifconfig.io')->output;+ $ip = trim($ip);+ $ip = filter_var($ip, FILTER_VALIDATE_IP);+ $settings = InstanceSettings::get();+ if ($settings->public_ip_address !== $ip) {+ $settings->update(['public_ip_address' => $ip]);+ }+ } catch (\Exception $e) {+ echo "Error: {$e->getMessage()}\n";+ }}}diff --git a/resources/views/dashboard.blade.php b/resources/views/dashboard.blade.phpindex ed95d48e7a..9ada888839 100644--- a/resources/views/dashboard.blade.php+++ b/resources/views/dashboard.blade.php@@ -17,6 +17,5 @@<div class="stat-value">{{ $resources }}</div><div class="stat-desc">Applications, databases, etc...</div></div>-</div></x-layout>