Update server unreachable notifications to include automatic revival

This commit is contained in:
Andras Bacsai 2024-01-17 14:02:54 +01:00
parent 4abcb2d5b9
commit 3878527de8
2 changed files with 3 additions and 3 deletions

View File

@ -52,13 +52,13 @@ class Unreachable extends Notification implements ShouldQueue
public function toDiscord(): string public function toDiscord(): string
{ {
$message = "Coolify: Your server '{$this->server->name}' is unreachable. All automations & integrations are turned off! Please check your server! IMPORTANT: We automatically try to revive your server. If your server is back online, we will automatically turn on all automations & integrations."; $message = "Coolify: Your server '{$this->server->name}' is unreachable. All automations & integrations are turned off! Please check your server! IMPORTANT: We automatically try to revive your server and turn on all automations & integrations.";
return $message; return $message;
} }
public function toTelegram(): array public function toTelegram(): array
{ {
return [ return [
"message" => "Coolify: Your server '{$this->server->name}' is unreachable. All automations & integrations are turned off! Please check your server! IMPORTANT: We automatically try to revive your server. If your server is back online, we will automatically turn on all automations & integrations." "message" => "Coolify: Your server '{$this->server->name}' is unreachable. All automations & integrations are turned off! Please check your server! IMPORTANT: We automatically try to revive your server and turn on all automations & integrations."
]; ];
} }
} }

View File

@ -3,7 +3,7 @@ Coolify cannot connect to your server ({{ $name }}). Please check your server an
All automations & integrations are turned off! All automations & integrations are turned off!
IMPORTANT: We automatically try to revive your server. If your server is back online, we will automatically turn on all automations & integrations. IMPORTANT: We automatically try to revive your server and turn on all automations & integrations.
If you have any questions, please contact us. If you have any questions, please contact us.
</x-emails.layout> </x-emails.layout>