Skip to content

Commit 111e9ba

Browse files
committed
Fix: Disable API by default
1 parent 47920f1 commit 111e9ba

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
use Illuminate\Database\Migrations\Migration;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Support\Facades\Schema;
6+
7+
return new class extends Migration
8+
{
9+
/**
10+
* Run the migrations.
11+
*/
12+
public function up(): void
13+
{
14+
Schema::table('instance_settings', function (Blueprint $table) {
15+
$table->boolean('is_api_enabled')->default(false)->change();
16+
});
17+
}
18+
};

resources/views/livewire/security/api-tokens.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<div class="pb-4 ">
77
<h2>API Tokens</h2>
88
@if (!$instanceSettings->is_api_enabled)
9-
<strong>API is disabled. If you want to use API, please enable it in the Instance Settings.</strong>
9+
<strong>API is disabled. If you want to use the API, please enable it in the Coolify Instance Settings.</strong>
1010
@else
1111
<div>Tokens are created with the current team as scope. You will only have access to this team's resources.
1212
</div>

0 commit comments

Comments
 (0)