2023-06-01 10:15:33 +00:00
< div >
2024-06-07 09:01:10 +00:00
< x - slot : title >
Notifications | Coolify
</ x - slot >
2024-03-22 12:25:43 +00:00
< x - notification . navbar />
2024-12-09 15:38:25 +00:00
< form wire : submit = 'submit' class = " flex flex-col gap-4 pb-4 " >
2023-06-01 10:15:33 +00:00
< div class = " flex items-center gap-2 " >
2023-06-02 10:34:45 +00:00
< h2 > Discord </ h2 >
< x - forms . button type = " submit " >
2023-06-01 10:15:33 +00:00
Save
</ x - forms . button >
2024-11-03 22:19:44 +00:00
@ if ( $discordEnabled )
2024-06-07 09:01:10 +00:00
< x - forms . button class = " normal-case dark:text-white btn btn-xs no-animation btn-primary "
2023-08-11 18:19:42 +00:00
wire : click = " sendTestNotification " >
2024-12-09 15:38:25 +00:00
Send Test Notification
2023-06-09 13:55:21 +00:00
</ x - forms . button >
@ endif
2023-06-01 10:15:33 +00:00
</ div >
2024-03-22 12:25:43 +00:00
< div class = " w-32 " >
2024-11-05 10:33:33 +00:00
< x - forms . checkbox instantSave = " instantSaveDiscordEnabled " id = " discordEnabled " label = " Enabled " />
2023-05-25 16:27:52 +00:00
</ div >
2023-07-28 10:51:26 +00:00
< x - forms . input type = " password "
2023-08-11 18:19:42 +00:00
helper = " Generate a webhook in Discord.<br>Example: https://discord.com/api/webhooks/.... " required
2024-11-03 22:19:44 +00:00
id = " discordWebhookUrl " label = " Webhook " />
2023-05-25 16:27:52 +00:00
</ form >
2024-11-03 22:19:44 +00:00
@ if ( $discordEnabled )
2024-12-09 15:38:25 +00:00
< h2 class = " mt-8 mb-4 " > Notification Settings </ h2 >
< p class = " mb-4 " >
Select events for which you would like to receive Discord notifications .
</ p >
< div class = " flex flex-col gap-4 max-w-2xl " >
< div class = " border dark:border-coolgray-300 p-4 rounded-lg " >
< h3 class = " font-medium mb-3 " > Deployments </ h3 >
< div class = " flex flex-col gap-1.5 pl-1 " >
< x - forms . checkbox instantSave = " saveModel " id = " deploymentSuccessDiscordNotifications " label = " Deployment Success " />
< x - forms . checkbox instantSave = " saveModel " id = " deploymentFailureDiscordNotifications " label = " Deployment Failure " />
< x - forms . checkbox instantSave = " saveModel " helper = " Send a notification when a container status changes. It will notify for Stopped and Restarted events of a container. " id = " statusChangeDiscordNotifications " label = " Container Status Changes " />
</ div >
</ div >
< div class = " border dark:border-coolgray-300 p-4 rounded-lg " >
< h3 class = " font-medium mb-3 " > Backups </ h3 >
< div class = " flex flex-col gap-1.5 pl-1 " >
< x - forms . checkbox instantSave = " saveModel " id = " backupSuccessDiscordNotifications " label = " Backup Success " />
< x - forms . checkbox instantSave = " saveModel " id = " backupFailureDiscordNotifications " label = " Backup Failure " />
</ div >
</ div >
< div class = " border dark:border-coolgray-300 p-4 rounded-lg " >
< h3 class = " font-medium mb-3 " > Scheduled Tasks </ h3 >
< div class = " flex flex-col gap-1.5 pl-1 " >
< x - forms . checkbox instantSave = " saveModel " id = " scheduledTaskSuccessDiscordNotifications " label = " Scheduled Task Success " />
< x - forms . checkbox instantSave = " saveModel " id = " scheduledTaskFailureDiscordNotifications " label = " Scheduled Task Failure " />
</ div >
</ div >
< div class = " border dark:border-coolgray-300 p-4 rounded-lg " >
< h3 class = " font-medium mb-3 " > Server </ h3 >
< div class = " flex flex-col gap-1.5 pl-1 " >
< x - forms . checkbox instantSave = " saveModel " helper = " Send a notification when Docker Cleanup is run on a server. " id = " dockerCleanupDiscordNotifications " label = " Docker Cleanup " />
< x - forms . checkbox instantSave = " saveModel " helper = " Send a notification when server disk usage is high. " id = " serverDiskUsageDiscordNotifications " label = " Server Disk Usage " />
< x - forms . checkbox instantSave = " saveModel " id = " serverReachableDiscordNotifications " label = " Server Reachable " />
< x - forms . checkbox instantSave = " saveModel " id = " serverUnreachableDiscordNotifications " label = " Server Unreachable " />
</ div >
</ div >
</ div >
2023-06-20 13:04:46 +00:00
@ endif
2023-05-25 16:27:52 +00:00
</ div >