From 111e9ba3a33b9398a04ea2ad60bebe08cfa0a44f Mon Sep 17 00:00:00 2001 From: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com> Date: Thu, 26 Sep 2024 10:45:18 +0200 Subject: [PATCH] Fix: Disable API by default --- ...024_09_26_083441_disable_api_by_default.php | 18 ++++++++++++++++++ .../livewire/security/api-tokens.blade.php | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 database/migrations/2024_09_26_083441_disable_api_by_default.php diff --git a/database/migrations/2024_09_26_083441_disable_api_by_default.php b/database/migrations/2024_09_26_083441_disable_api_by_default.php new file mode 100644 index 000000000..d0803f751 --- /dev/null +++ b/database/migrations/2024_09_26_083441_disable_api_by_default.php @@ -0,0 +1,18 @@ +boolean('is_api_enabled')->default(false)->change(); + }); + } +}; diff --git a/resources/views/livewire/security/api-tokens.blade.php b/resources/views/livewire/security/api-tokens.blade.php index a73a9ca1a..3da3a2dbe 100644 --- a/resources/views/livewire/security/api-tokens.blade.php +++ b/resources/views/livewire/security/api-tokens.blade.php @@ -6,7 +6,7 @@

API Tokens

@if (!$instanceSettings->is_api_enabled) - API is disabled. If you want to use API, please enable it in the Instance Settings. + API is disabled. If you want to use the API, please enable it in the Coolify Instance Settings. @else
Tokens are created with the current team as scope. You will only have access to this team's resources.