mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-06 21:18:11 -04:00
feat(server): set up Cloudflare tunnels with API tokens (#12157)
This commit is contained in:
+31
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('server_settings', function (Blueprint $table) {
|
||||
$table->string('cloudflare_tunnel_id')->nullable();
|
||||
$table->string('cloudflare_tunnel_account_id')->nullable();
|
||||
$table->foreignId('cloudflare_tunnel_integration_token_id')->nullable()->constrained('integration_tokens')->nullOnDelete();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('server_settings', function (Blueprint $table) {
|
||||
$table->dropConstrainedForeignId('cloudflare_tunnel_integration_token_id');
|
||||
$table->dropColumn(['cloudflare_tunnel_id', 'cloudflare_tunnel_account_id']);
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user