2023-09-06 12:31:38 +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 />
< form wire : submit = 'submit' class = " flex flex-col gap-4 " >
2023-09-06 12:31:38 +00:00
< div class = " flex items-center gap-2 " >
< h2 > Telegram </ h2 >
< x - forms . button type = " submit " >
Save
</ x - forms . button >
2024-11-04 16:48:39 +00:00
@ if ( $telegramEnabled )
2024-05-17 10:09:22 +00:00
< x - forms . button class = " normal-case dark:text-white btn btn-xs no-animation btn-primary "
2023-09-06 12:31:38 +00:00
wire : click = " sendTestNotification " >
2024-12-09 15:49:09 +00:00
Send Test Notification
2023-09-06 12:31:38 +00:00
</ x - forms . button >
@ endif
</ 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 = " instantSaveTelegramEnabled " id = " telegramEnabled " label = " Enabled " />
2023-09-06 12:31:38 +00:00
</ div >
< div class = " flex gap-2 " >
2024-11-04 16:48:39 +00:00
< 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. "
required id = " telegramToken " label = " Token " />
2023-12-07 18:06:32 +00:00
< x - forms . input helper = " Recommended to add your bot to a group chat and add its Chat ID here. " required
2024-11-04 16:48:39 +00:00
id = " telegramChatId " label = " Chat ID " />
2023-09-06 12:31:38 +00:00
</ div >
2024-11-04 16:48:39 +00:00
@ if ( $telegramEnabled )
2024-12-09 15:49:09 +00:00
< h2 class = " mt-8 mb-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 max-w-2xl " >
< 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 " >
< h4 class = " font-medium mt-2 " > Backup Success </ h4 >
< div class = " pl-1 " >
< x - forms . checkbox instantSave = " saveModel " id = " backupSuccessTelegramNotifications " label = " Enabled " />
< x - forms . input helper = " Topic ID for backup success notifications "
id = " telegramNotificationsBackupSuccessTopicId " label = " Success Topic ID " />
</ div >
< h4 class = " font-medium mt-3 " > Backup Failure </ h4 >
< div class = " pl-1 " >
< x - forms . checkbox instantSave = " saveModel " id = " backupFailureTelegramNotifications " label = " Enabled " />
< x - forms . input helper = " Topic ID for backup failure notifications "
id = " telegramNotificationsBackupFailureTopicId " label = " Failure Topic ID " />
</ div >
2023-12-07 18:06:32 +00:00
</ div >
</ div >
2024-12-09 15:49:09 +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 " >
< h4 class = " font-medium mt-2 " > Scheduled Task Success </ h4 >
< div class = " pl-1 " >
< x - forms . checkbox instantSave = " saveModel " id = " scheduledTaskSuccessTelegramNotifications " label = " Enabled " />
< x - forms . input helper = " Topic ID for scheduled task success notifications "
id = " telegramNotificationsScheduledTaskSuccessTopicId " label = " Success Topic ID " />
</ div >
< h4 class = " font-medium mt-3 " > Scheduled Task Failure </ h4 >
< div class = " pl-1 " >
< x - forms . checkbox instantSave = " saveModel " id = " scheduledTaskFailureTelegramNotifications " label = " Enabled " />
< x - forms . input helper = " Topic ID for scheduled task failure notifications "
id = " telegramNotificationsScheduledTaskFailureTopicId " label = " Failure Topic ID " />
</ div >
</ div >
2024-05-21 13:36:26 +00:00
</ div >
2024-12-09 15:49:09 +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 " >
< h4 class = " font-medium mt-2 " > Docker Cleanup </ h4 >
< div class = " pl-1 " >
< x - forms . checkbox instantSave = " saveModel " id = " dockerCleanupTelegramNotifications " label = " Enabled " />
< x - forms . input helper = " Topic ID for Docker cleanup notifications "
id = " telegramNotificationsDockerCleanupTopicId " label = " Docker Cleanup Topic ID " />
</ div >
< h4 class = " font-medium mt-3 " > Server Disk Usage </ h4 >
< div class = " pl-1 " >
< x - forms . checkbox instantSave = " saveModel " id = " serverDiskUsageTelegramNotifications " label = " Enabled " />
< x - forms . input helper = " Topic ID for disk usage notifications "
id = " telegramNotificationsServerDiskUsageTopicId " label = " Disk Usage Topic ID " />
</ div >
< h4 class = " font-medium mt-3 " > Server Reachable </ h4 >
< div class = " pl-1 " >
< x - forms . checkbox instantSave = " saveModel " id = " serverReachableTelegramNotifications " label = " Enabled " />
< x - forms . input helper = " Topic ID for server reachable notifications "
id = " telegramNotificationsServerReachableTopicId " label = " Server Reachable Topic ID " />
</ div >
< h4 class = " font-medium mt-3 " > Server Unreachable </ h4 >
< div class = " pl-1 " >
< x - forms . checkbox instantSave = " saveModel " id = " serverUnreachableTelegramNotifications " label = " Enabled " />
< x - forms . input helper = " Topic ID for server unreachable notifications "
id = " telegramNotificationsServerUnreachableTopicId " label = " Server Unreachable Topic ID " />
</ div >
</ div >
2024-10-22 12:47:01 +00:00
</ div >
2023-09-08 12:15:28 +00:00
</ div >
@ endif
</ form >
2023-09-06 12:31:38 +00:00
</ div >