Skip to content

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.

Merge branch 'next' into main

Marvin von Rappard02a20729c771
diff --cc app/Notifications/Application/DeploymentFailed.php
index 12bcce6267,ce1f99d77b..cdcec3261e
--- a/app/Notifications/Application/DeploymentFailed.php
+++ b/app/Notifications/Application/DeploymentFailed.php
@@@ -4,19 -4,12 +4,13 @@@ namespace App\Notifications\Application
use App\Models\Application;
use App\Models\ApplicationPreview;
+ use App\Notifications\CustomEmailNotification;
use App\Notifications\Dto\DiscordMessage;
+use App\Notifications\Dto\SlackMessage;
- use Illuminate\Bus\Queueable;
- use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
- use Illuminate\Notifications\Notification;
- class DeploymentFailed extends Notification implements ShouldQueue
+ class DeploymentFailed extends CustomEmailNotification
{
- use Queueable;
-
- public $tries = 1;
-
public Application $application;
public ?ApplicationPreview $preview = null;
diff --cc app/Notifications/Application/DeploymentSuccess.php
index 29934dab11,3916012571..565bce0a5c
--- a/app/Notifications/Application/DeploymentSuccess.php
+++ b/app/Notifications/Application/DeploymentSuccess.php
@@@ -4,18 -4,12 +4,13 @@@ namespace App\Notifications\Application
use App\Models\Application;
use App\Models\ApplicationPreview;
+ use App\Notifications\CustomEmailNotification;
use App\Notifications\Dto\DiscordMessage;
- use Illuminate\Bus\Queueable;
- use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
- use Illuminate\Notifications\Notification;
+use App\Notifications\Dto\SlackMessage;
- class DeploymentSuccess extends Notification implements ShouldQueue
- {
- use Queueable;
-
- public $tries = 1;
+ class DeploymentSuccess extends CustomEmailNotification
+ {
public Application $application;
public ?ApplicationPreview $preview = null;
diff --cc app/Notifications/Application/StatusChanged.php
index 1f57aeedae,c757495cb5..18c042ca6c
--- a/app/Notifications/Application/StatusChanged.php
+++ b/app/Notifications/Application/StatusChanged.php
@@@ -3,18 -3,12 +3,13 @@@
namespace App\Notifications\Application;
use App\Models\Application;
+ use App\Notifications\CustomEmailNotification;
use App\Notifications\Dto\DiscordMessage;
- use Illuminate\Bus\Queueable;
- use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
- use Illuminate\Notifications\Notification;
+use App\Notifications\Dto\SlackMessage;
- class StatusChanged extends Notification implements ShouldQueue
- {
- use Queueable;
-
- public $tries = 1;
+ class StatusChanged extends CustomEmailNotification
+ {
public string $resource_name;
public string $project_uuid;
diff --cc app/Notifications/Container/ContainerRestarted.php
index d1642bc5d3,eb709535f4..e1cf836ff7
--- a/app/Notifications/Container/ContainerRestarted.php
+++ b/app/Notifications/Container/ContainerRestarted.php
@@@ -3,18 -3,12 +3,13 @@@
namespace App\Notifications\Container;
use App\Models\Server;
+ use App\Notifications\CustomEmailNotification;
use App\Notifications\Dto\DiscordMessage;
- use Illuminate\Bus\Queueable;
- use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
- use Illuminate\Notifications\Notification;
+use App\Notifications\Dto\SlackMessage;
- class ContainerRestarted extends Notification implements ShouldQueue
- {
- use Queueable;
-
- public $tries = 1;
+ class ContainerRestarted extends CustomEmailNotification
+ {
public function __construct(public string $name, public Server $server, public ?string $url = null)
{
$this->onQueue('high');
diff --cc app/Notifications/Container/ContainerStopped.php
index a5d812bf14,a73e984a01..76c2dae802
--- a/app/Notifications/Container/ContainerStopped.php
+++ b/app/Notifications/Container/ContainerStopped.php
@@@ -3,18 -3,12 +3,13 @@@
namespace App\Notifications\Container;
use App\Models\Server;
+ use App\Notifications\CustomEmailNotification;
use App\Notifications\Dto\DiscordMessage;
- use Illuminate\Bus\Queueable;
- use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
- use Illuminate\Notifications\Notification;
+use App\Notifications\Dto\SlackMessage;
- class ContainerStopped extends Notification implements ShouldQueue
- {
- use Queueable;
-
- public $tries = 1;
+ class ContainerStopped extends CustomEmailNotification
+ {
public function __construct(public string $name, public Server $server, public ?string $url = null)
{
$this->onQueue('high');
diff --cc app/Notifications/Database/BackupFailed.php
index 22e5cea253,beeea08042..a1b5c42e5d
--- a/app/Notifications/Database/BackupFailed.php
+++ b/app/Notifications/Database/BackupFailed.php
@@@ -3,20 -3,12 +3,13 @@@
namespace App\Notifications\Database;
use App\Models\ScheduledDatabaseBackup;
+ use App\Notifications\CustomEmailNotification;
use App\Notifications\Dto\DiscordMessage;
- use Illuminate\Bus\Queueable;
- use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
- use Illuminate\Notifications\Notification;
+use App\Notifications\Dto\SlackMessage;
- class BackupFailed extends Notification implements ShouldQueue
- {
- use Queueable;
-
- public $backoff = 10;
-
- public $tries = 2;
+ class BackupFailed extends CustomEmailNotification
+ {
public string $name;
public string $frequency;
diff --cc app/Notifications/Database/BackupSuccess.php
index 6f7b32b42a,d8bab069be..f2aa247a6f
--- a/app/Notifications/Database/BackupSuccess.php
+++ b/app/Notifications/Database/BackupSuccess.php
@@@ -3,20 -3,12 +3,13 @@@
namespace App\Notifications\Database;
use App\Models\ScheduledDatabaseBackup;
+ use App\Notifications\CustomEmailNotification;
use App\Notifications\Dto\DiscordMessage;
- use Illuminate\Bus\Queueable;
- use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
- use Illuminate\Notifications\Notification;
+use App\Notifications\Dto\SlackMessage;
- class BackupSuccess extends Notification implements ShouldQueue
- {
- use Queueable;
-
- public $backoff = 10;
-
- public $tries = 3;
+ class BackupSuccess extends CustomEmailNotification
+ {
public string $name;
public string $frequency;
diff --cc app/Notifications/ScheduledTask/TaskFailed.php
index 67f77ff718,701f612776..53b7f46a3e
--- a/app/Notifications/ScheduledTask/TaskFailed.php
+++ b/app/Notifications/ScheduledTask/TaskFailed.php
@@@ -3,20 -3,12 +3,13 @@@
namespace App\Notifications\ScheduledTask;
use App\Models\ScheduledTask;
+ use App\Notifications\CustomEmailNotification;
use App\Notifications\Dto\DiscordMessage;
- use Illuminate\Bus\Queueable;
- use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
- use Illuminate\Notifications\Notification;
+use App\Notifications\Dto\SlackMessage;
- class TaskFailed extends Notification implements ShouldQueue
- {
- use Queueable;
-
- public $backoff = 10;
-
- public $tries = 2;
+ class TaskFailed extends CustomEmailNotification
+ {
public ?string $url = null;
public function __construct(public ScheduledTask $task, public string $output)
diff --cc app/Notifications/Server/DockerCleanup.php
index 979672cfda,2d007a262d..46b730c7b1
--- a/app/Notifications/Server/DockerCleanup.php
+++ b/app/Notifications/Server/DockerCleanup.php
@@@ -5,18 -5,11 +5,12 @@@ namespace App\Notifications\Server
use App\Models\Server;
use App\Notifications\Channels\DiscordChannel;
use App\Notifications\Channels\TelegramChannel;
+ use App\Notifications\CustomEmailNotification;
use App\Notifications\Dto\DiscordMessage;
+use App\Notifications\Dto\SlackMessage;
- use Illuminate\Bus\Queueable;
- use Illuminate\Contracts\Queue\ShouldQueue;
- use Illuminate\Notifications\Notification;
- class DockerCleanup extends Notification implements ShouldQueue
+ class DockerCleanup extends CustomEmailNotification
{
- use Queueable;
-
- public $tries = 1;
-
public function __construct(public Server $server, public string $message)
{
$this->onQueue('high');
diff --cc app/Notifications/Server/ForceDisabled.php
index 053ea6e7f8,eabf8b334d..1939170f6b
--- a/app/Notifications/Server/ForceDisabled.php
+++ b/app/Notifications/Server/ForceDisabled.php
@@@ -6,20 -6,12 +6,14 @@@ use App\Models\Server
use App\Notifications\Channels\DiscordChannel;
use App\Notifications\Channels\EmailChannel;
use App\Notifications\Channels\TelegramChannel;
+use App\Notifications\Channels\SlackChannel;
- use App\Notifications\Dto\DiscordMessage;
+use App\Notifications\Dto\SlackMessage;
- use Illuminate\Bus\Queueable;
- use Illuminate\Contracts\Queue\ShouldQueue;
+ use App\Notifications\CustomEmailNotification;
+ use App\Notifications\Dto\DiscordMessage;
use Illuminate\Notifications\Messages\MailMessage;
- use Illuminate\Notifications\Notification;
- class ForceDisabled extends Notification implements ShouldQueue
+ class ForceDisabled extends CustomEmailNotification
{
- use Queueable;
-
- public $tries = 1;
-
public function __construct(public Server $server)
{
$this->onQueue('high');
diff --cc app/Notifications/Server/ForceEnabled.php
index 1c7086dfdb,0c21ed6b8e..4b6181e192
--- a/app/Notifications/Server/ForceEnabled.php
+++ b/app/Notifications/Server/ForceEnabled.php
@@@ -6,20 -6,12 +6,14 @@@ use App\Models\Server
use App\Notifications\Channels\DiscordChannel;
use App\Notifications\Channels\EmailChannel;
use App\Notifications\Channels\TelegramChannel;
+use App\Notifications\Channels\SlackChannel;
- use App\Notifications\Dto\DiscordMessage;
+use App\Notifications\Dto\SlackMessage;
- use Illuminate\Bus\Queueable;
- use Illuminate\Contracts\Queue\ShouldQueue;
+ use App\Notifications\CustomEmailNotification;
+ use App\Notifications\Dto\DiscordMessage;
use Illuminate\Notifications\Messages\MailMessage;
- use Illuminate\Notifications\Notification;
- class ForceEnabled extends Notification implements ShouldQueue
+ class ForceEnabled extends CustomEmailNotification
{
- use Queueable;
-
- public $tries = 1;
-
public function __construct(public Server $server)
{
$this->onQueue('high');
diff --cc app/Notifications/Server/HighDiskUsage.php
index 6c38b8418c,7cec2e8929..40c0e2cb6d
--- a/app/Notifications/Server/HighDiskUsage.php
+++ b/app/Notifications/Server/HighDiskUsage.php
@@@ -3,19 -3,12 +3,13 @@@
namespace App\Notifications\Server;
use App\Models\Server;
+ use App\Notifications\CustomEmailNotification;
use App\Notifications\Dto\DiscordMessage;
+use App\Notifications\Dto\SlackMessage;
- use Illuminate\Bus\Queueable;
- use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
- use Illuminate\Notifications\Notification;
- class HighDiskUsage extends Notification implements ShouldQueue
+ class HighDiskUsage extends CustomEmailNotification
{
- use Queueable;
-
- public $tries = 1;
-
public function __construct(public Server $server, public int $disk_usage, public int $server_disk_usage_notification_threshold)
{
$this->onQueue('high');
diff --cc app/Notifications/Server/Reachable.php
index 3e49fea8dc,44189c3b5e..a0dfd1cc52
--- a/app/Notifications/Server/Reachable.php
+++ b/app/Notifications/Server/Reachable.php
@@@ -6,20 -6,12 +6,14 @@@ use App\Models\Server
use App\Notifications\Channels\DiscordChannel;
use App\Notifications\Channels\EmailChannel;
use App\Notifications\Channels\TelegramChannel;
+use App\Notifications\Channels\SlackChannel;
- use App\Notifications\Dto\DiscordMessage;
+use App\Notifications\Dto\SlackMessage;
- use Illuminate\Bus\Queueable;
- use Illuminate\Contracts\Queue\ShouldQueue;
+ use App\Notifications\CustomEmailNotification;
+ use App\Notifications\Dto\DiscordMessage;
use Illuminate\Notifications\Messages\MailMessage;
- use Illuminate\Notifications\Notification;
- class Reachable extends Notification implements ShouldQueue
+ class Reachable extends CustomEmailNotification
{
- use Queueable;
-
- public $tries = 1;
-
protected bool $isRateLimited = false;
public function __construct(public Server $server)
diff --cc app/Notifications/Server/Unreachable.php
index e0f58787da,6fb792bdc9..0bd44ef3de
--- a/app/Notifications/Server/Unreachable.php
+++ b/app/Notifications/Server/Unreachable.php
@@@ -6,20 -6,12 +6,14 @@@ use App\Models\Server
use App\Notifications\Channels\DiscordChannel;
use App\Notifications\Channels\EmailChannel;
use App\Notifications\Channels\TelegramChannel;
+use App\Notifications\Channels\SlackChannel;
- use App\Notifications\Dto\DiscordMessage;
+use App\Notifications\Dto\SlackMessage;
- use Illuminate\Bus\Queueable;
- use Illuminate\Contracts\Queue\ShouldQueue;
+ use App\Notifications\CustomEmailNotification;
+ use App\Notifications\Dto\DiscordMessage;
use Illuminate\Notifications\Messages\MailMessage;
- use Illuminate\Notifications\Notification;
- class Unreachable extends Notification implements ShouldQueue
+ class Unreachable extends CustomEmailNotification
{
- use Queueable;
-
- public $tries = 1;
-
protected bool $isRateLimited = false;
public function __construct(public Server $server)