2023-09-06 12:31:38 +00:00
< div >
2024-06-07 09:01:10 +00:00
< x - slot : title >
Notifications | Coolify
2024-12-11 09:14:12 +00:00
</ x - slot >
< x - notification . navbar />
< form wire : submit = 'submit' class = " flex flex-col gap-4 pb-4 " >
< div class = " flex items-center gap-2 " >
< h2 > Telegram </ h2 >
< x - forms . button type = " submit " >
Save
</ x - forms . button >
@ if ( $telegramEnabled )
< x - forms . button class = " normal-case dark:text-white btn btn-xs no-animation btn-primary "
wire : click = " sendTestNotification " >
Send Test Notification
2024-12-10 14:31:00 +00:00
</ x - forms . button >
2024-12-11 09:14:12 +00:00
@ else
< x - forms . button disabled class = " normal-case dark:text-white btn btn-xs no-animation btn-primary " >
2024-12-09 15:49:09 +00:00
Send Test Notification
2023-09-06 12:31:38 +00:00
</ x - forms . button >
2024-12-11 09:14:12 +00:00
@ endif
</ div >
< div class = " w-32 " >
< x - forms . checkbox instantSave = " instantSaveTelegramEnabled " id = " telegramEnabled " label = " Enabled " />
</ div >
< div class = " flex gap-2 " >
< x - forms . input type = " password " autocomplete = " new-password "
helper = " Get it from the <a class='inline-block underline dark:text-white' href='https://t.me/botfather' target='_blank'>BotFather Bot</a> on Telegram. "
2024-12-11 18:16:17 +00:00
required id = " telegramToken " label = " Bot API Token " />
< x - forms . input type = " password " autocomplete = " new-password " helper = " Add your bot to a group chat and add its Chat ID here. " required
2024-12-11 09:14:12 +00:00
id = " telegramChatId " label = " Chat ID " />
</ div >
</ form >
< h2 class = " mt-4 " > Notification Settings </ h2 >
< p class = " mb-4 " >
Select events for which you would like to receive Telegram notifications .
</ p >
< div class = " flex flex-col gap-4 " >
< div class = " border dark:border-coolgray-300 p-4 rounded-lg " >
< h3 class = " text-lg font-medium mb-3 " > Deployments </ h3 >
< div class = " flex flex-col gap-1.5 pl-1 " >
< div class = " pl-1 flex gap-2 " >
< div class = " w-96 " >
< x - forms . checkbox instantSave = " saveModel " id = " deploymentSuccessTelegramNotifications "
label = " Deployment Success " />
</ div >
2024-12-11 22:13:13 +00:00
< x - forms . input type = " password " placeholder = " Custom Telegram Thread ID "
id = " telegramNotificationsDeploymentSuccessThreadId " />
2024-12-11 09:14:12 +00:00
</ div >
< div class = " pl-1 flex gap-2 " >
< div class = " w-96 " >
< x - forms . checkbox instantSave = " saveModel " id = " deploymentFailureTelegramNotifications "
label = " Deployment Failure " />
</ div >
2024-12-11 22:13:13 +00:00
< x - forms . input type = " password " placeholder = " Custom Telegram Thread ID "
id = " telegramNotificationsDeploymentFailureThreadId " />
2024-12-11 09:14:12 +00:00
</ div >
2024-12-11 10:28:56 +00:00
< div class = " pl-1 flex gap-2 " >
< div class = " w-96 " >
< x - forms . checkbox instantSave = " saveModel " id = " statusChangeTelegramNotifications "
label = " Container Status Changes "
helper = " Send a notification when a container status changes. It will send a notification for Stopped and Restarted events of a container. " />
</ div >
2024-12-11 22:13:13 +00:00
< x - forms . input type = " password " id = " telegramNotificationsStatusChangeThreadId "
placeholder = " Custom Telegram Thread ID " />
2024-12-11 10:28:56 +00:00
</ div >
2024-12-10 14:31:00 +00:00
</ div >
2024-12-11 09:14:12 +00:00
</ div >
< div class = " border dark:border-coolgray-300 p-4 rounded-lg " >
< h3 class = " text-lg font-medium mb-3 " > Backups </ h3 >
< div class = " flex flex-col gap-1.5 pl-1 " >
< div class = " pl-1 flex gap-2 " >
< div class = " w-96 " >
< x - forms . checkbox instantSave = " saveModel " id = " backupSuccessTelegramNotifications "
label = " Backup Success " />
</ div >
2024-12-11 22:13:13 +00:00
< x - forms . input type = " password " placeholder = " Custom Telegram Thread ID "
id = " telegramNotificationsBackupSuccessThreadId " />
2024-12-11 09:14:12 +00:00
</ div >
< div class = " pl-1 flex gap-2 " >
< div class = " w-96 " >
< x - forms . checkbox instantSave = " saveModel " id = " backupFailureTelegramNotifications "
label = " Backup Failure " />
2024-12-10 14:31:00 +00:00
</ div >
2024-12-11 22:13:13 +00:00
< x - forms . input type = " password " placeholder = " Custom Telegram Thread ID "
id = " telegramNotificationsBackupFailureThreadId " />
2024-12-10 14:31:00 +00:00
</ div >
2024-12-11 09:14:12 +00:00
</ div >
</ div >
2024-12-10 14:31:00 +00:00
2024-12-11 09:14:12 +00:00
< div class = " border dark:border-coolgray-300 p-4 rounded-lg " >
< h3 class = " text-lg font-medium mb-3 " > Scheduled Tasks </ h3 >
< div class = " flex flex-col gap-1.5 pl-1 " >
< div class = " pl-1 flex gap-2 " >
< div class = " w-96 " >
< x - forms . checkbox instantSave = " saveModel " id = " scheduledTaskSuccessTelegramNotifications "
label = " Scheduled Task Success " />
2023-12-07 18:06:32 +00:00
</ div >
2024-12-11 22:13:13 +00:00
< x - forms . input type = " password " placeholder = " Custom Telegram Thread ID "
id = " telegramNotificationsScheduledTaskSuccessThreadId " />
2023-12-07 18:06:32 +00:00
</ div >
2024-12-09 15:49:09 +00:00
2024-12-11 09:14:12 +00:00
< div class = " pl-1 flex gap-2 " >
< div class = " w-96 " >
< x - forms . checkbox instantSave = " saveModel " id = " scheduledTaskFailureTelegramNotifications "
label = " Scheduled Task Failure " />
</ div >
2024-12-11 22:13:13 +00:00
< x - forms . input type = " password " placeholder = " Custom Telegram Thread ID "
id = " telegramNotificationsScheduledTaskFailureThreadId " />
2024-12-11 09:14:12 +00:00
</ div >
</ div >
</ div >
2024-12-10 14:31:00 +00:00
2024-12-11 09:14:12 +00:00
< div class = " border dark:border-coolgray-300 p-4 rounded-lg " >
< h3 class = " text-lg font-medium mb-3 " > Server </ h3 >
< div class = " flex flex-col gap-1.5 pl-1 " >
< div class = " pl-1 flex gap-2 " >
< div class = " w-96 " >
< x - forms . checkbox instantSave = " saveModel " id = " dockerCleanupSuccessTelegramNotifications "
label = " Docker Cleanup Success " />
2024-12-09 15:49:09 +00:00
</ div >
2024-12-11 22:13:13 +00:00
< x - forms . input type = " password " placeholder = " Custom Telegram Thread ID "
id = " telegramNotificationsDockerCleanupSuccessThreadId " />
2024-05-21 13:36:26 +00:00
</ div >
2024-12-09 15:49:09 +00:00
2024-12-11 09:14:12 +00:00
< div class = " pl-1 flex gap-2 " >
< div class = " w-96 " >
< x - forms . checkbox instantSave = " saveModel " id = " dockerCleanupFailureTelegramNotifications "
label = " Docker Cleanup Failure " />
</ div >
2024-12-11 22:13:13 +00:00
< x - forms . input type = " password " placeholder = " Custom Telegram Thread ID "
id = " telegramNotificationsDockerCleanupFailureThreadId " />
2024-12-11 09:14:12 +00:00
</ div >
2024-12-10 15:04:54 +00:00
2024-12-11 09:14:12 +00:00
< div class = " pl-1 flex gap-2 " >
< div class = " w-96 " >
< x - forms . checkbox instantSave = " saveModel " id = " serverDiskUsageTelegramNotifications "
label = " Server Disk Usage " />
</ div >
2024-12-11 22:13:13 +00:00
< x - forms . input type = " password " placeholder = " Custom Telegram Thread ID "
id = " telegramNotificationsServerDiskUsageThreadId " />
2024-12-11 09:14:12 +00:00
</ div >
2024-12-10 14:31:00 +00:00
2024-12-11 09:14:12 +00:00
< div class = " pl-1 flex gap-2 " >
< div class = " w-96 " >
< x - forms . checkbox instantSave = " saveModel " id = " serverReachableTelegramNotifications "
label = " Server Reachable " />
</ div >
2024-12-11 22:13:13 +00:00
< x - forms . input type = " password " placeholder = " Custom Telegram Thread ID "
id = " telegramNotificationsServerReachableThreadId " />
2024-12-11 09:14:12 +00:00
</ div >
2024-12-10 14:31:00 +00:00
2024-12-11 09:14:12 +00:00
< div class = " pl-1 flex gap-2 " >
< div class = " w-96 " >
< x - forms . checkbox instantSave = " saveModel " id = " serverUnreachableTelegramNotifications "
label = " Server Unreachable " />
2024-12-09 15:49:09 +00:00
</ div >
2024-12-11 22:13:13 +00:00
< x - forms . input type = " password " placeholder = " Custom Telegram Thread ID "
id = " telegramNotificationsServerUnreachableThreadId " />
2024-10-22 12:47:01 +00:00
</ div >
2023-09-08 12:15:28 +00:00
</ div >
2024-12-11 09:14:12 +00:00
</ div >
</ div >
2023-09-06 12:31:38 +00:00
</ div >