mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-14 00:16:42 +00:00
feat: add custom webhook notification support
Add basic infrastructure for custom webhook notifications: - Create webhook_notification_settings table with event toggles - Add WebhookNotificationSettings model with encrypted URL - Integrate webhook settings into Team model and HasNotificationSettings trait - Create Livewire component and Blade view for webhook configuration - Add webhook navigation route and UI This provides the foundation for sending webhook notifications to custom HTTP/HTTPS endpoints when events occur in Coolify. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1 parent
503da6da21
commit
27879377a0
8 files changed
+385
No files matched your search
@@ -54,6 +54,7 @@ class Team extends Model implements SendsDiscord, SendsEmail, SendsPushover, Sen
|
||||
$team->slackNotificationSettings()->create();
|
||||
$team->telegramNotificationSettings()->create();
|
||||
$team->pushoverNotificationSettings()->create();
|
||||
$team->webhookNotificationSettings()->create();
|
||||
});
|
||||
|
||||
static::saving(function ($team) {
|
||||
@@ -307,4 +308,9 @@ class Team extends Model implements SendsDiscord, SendsEmail, SendsPushover, Sen
|
||||
{
|
||||
return $this->hasOne(PushoverNotificationSettings::class);
|
||||
}
|
||||
|
||||
public function webhookNotificationSettings()
|
||||
{
|
||||
return $this->hasOne(WebhookNotificationSettings::class);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user