diff --git a/app/Actions/License/CheckResaleLicense.php b/app/Actions/License/CheckResaleLicense.php
index 71d1dddaa..e7dcecdb6 100644
--- a/app/Actions/License/CheckResaleLicense.php
+++ b/app/Actions/License/CheckResaleLicense.php
@@ -14,6 +14,9 @@ public function __invoke()
$settings->update([
'is_resale_license_active' => false,
]);
+ if (is_dev()) {
+ return;
+ }
if (!$settings->resale_license) {
return;
}
diff --git a/app/Http/Livewire/Settings/Backup.php b/app/Http/Livewire/Settings/Backup.php
index 6d714c93d..fcb105fd4 100644
--- a/app/Http/Livewire/Settings/Backup.php
+++ b/app/Http/Livewire/Settings/Backup.php
@@ -14,8 +14,8 @@ class Backup extends Component
{
public InstanceSettings $settings;
public $s3s;
- public StandalonePostgresql|null $database = null;
- public ScheduledDatabaseBackup|null $backup = null;
+ public StandalonePostgresql|null|array $database = [];
+ public ScheduledDatabaseBackup|null|array $backup = [];
public $executions = [];
protected $rules = [
@@ -36,8 +36,8 @@ class Backup extends Component
public function mount()
{
- $this->backup = $this->database->scheduledBackups->first();
- $this->executions = $this->backup->executions;
+ $this->backup = $this->database?->scheduledBackups->first() ?? [];
+ $this->executions = $this->backup?->executions ?? [];
}
public function add_coolify_database()
{
diff --git a/bootstrap/helpers/subscriptions.php b/bootstrap/helpers/subscriptions.php
index 8383bc51b..64cf9b24c 100644
--- a/bootstrap/helpers/subscriptions.php
+++ b/bootstrap/helpers/subscriptions.php
@@ -2,9 +2,9 @@
use Illuminate\Support\Carbon;
-function getSubscriptionLink($id)
+function getSubscriptionLink($type)
{
- $checkout_id = config("coolify.lemon_squeezy_checkout_id_$id");
+ $checkout_id = config("coolify.lemon_squeezy_checkout_id_$type");
if (!$checkout_id) {
return null;
}
diff --git a/config/coolify.php b/config/coolify.php
index b0ae2ea2d..51536284a 100644
--- a/config/coolify.php
+++ b/config/coolify.php
@@ -4,9 +4,8 @@
'self_hosted' => env('SELF_HOSTED', true),
'license_url' => 'https://license.coolify.io',
'lemon_squeezy_webhook_secret' => env('LEMON_SQUEEZY_WEBHOOK_SECRET'),
- 'lemon_squeezy_checkout_id_1' => env('LEMON_SQUEEZY_CHECKOUT_ID_1'),
- 'lemon_squeezy_checkout_id_2' => env('LEMON_SQUEEZY_CHECKOUT_ID_2'),
- 'lemon_squeezy_checkout_id_3' => env('LEMON_SQUEEZY_CHECKOUT_ID_3'),
+ 'lemon_squeezy_checkout_id_monthly' => env('LEMON_SQUEEZY_CHECKOUT_ID_MONTHLY'),
+ 'lemon_squeezy_checkout_id_yearly' => env('LEMON_SQUEEZY_CHECKOUT_ID_YEARLY'),
'mux_enabled' => env('MUX_ENABLED', true),
'dev_webhook' => env('SERVEO_URL'),
'base_config_path' => env('BASE_CONFIG_PATH', '/_data/coolify'),
diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml
index 73b29c8ef..ae6b74e19 100644
--- a/docker-compose.prod.yml
+++ b/docker-compose.prod.yml
@@ -34,9 +34,8 @@ services:
- PHP_PM_MAX_SPARE_SERVERS=10
- SELF_HOSTED
- LEMON_SQUEEZY_WEBHOOK_SECRET
- - LEMON_SQUEEZY_CHECKOUT_ID_1
- - LEMON_SQUEEZY_CHECKOUT_ID_2
- - LEMON_SQUEEZY_CHECKOUT_ID_3
+ - LEMON_SQUEEZY_CHECKOUT_ID_MONTHLY
+ - LEMON_SQUEEZY_CHECKOUT_ID_YEARLY
ports:
- "${APP_PORT:-8000}:80"
expose:
diff --git a/resources/css/app.css b/resources/css/app.css
index e71e6b9cd..b5f58fc74 100644
--- a/resources/css/app.css
+++ b/resources/css/app.css
@@ -111,5 +111,8 @@ tr td:first-child {
}
.buyme {
- @apply block px-3 py-2 mt-10 text-sm font-semibold leading-6 text-center text-white rounded-md shadow-sm bg-coolgray-200 hover:bg-coolgray-300 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-coolgray-200;
+ @apply block px-3 py-2 mt-10 text-sm font-semibold leading-6 text-center text-white rounded-md shadow-sm bg-coolgray-200 hover:bg-coolgray-300 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-coolgray-200 hover:no-underline;
+}
+.subtitle {
+ @apply pt-2 pb-10;
}
diff --git a/resources/views/command-center.blade.php b/resources/views/command-center.blade.php
index cd4ed7baa..33474eac6 100644
--- a/resources/views/command-center.blade.php
+++ b/resources/views/command-center.blade.php
@@ -1,12 +1,12 @@
Command Center
-