Nerf telegram/vigil code.

This commit is contained in:
Greyscale 2024-07-18 17:17:26 +02:00
parent 5f01e175a8
commit 35536c16d0
3 changed files with 7 additions and 3 deletions

View file

@ -21,6 +21,7 @@ locals {
custom_html = var.custom_html
services = local.services_toml
startup_notification = var.notify_on_startup
telegram_enable = var.notify_telegram.token == "" ? "# " : "" // Disable telegram if token is not set
telegram_bot_token = var.notify_telegram.token
telegram_chat_id = var.notify_telegram.channel
})

View file

@ -59,9 +59,9 @@ reminder_interval = 600
reminder_backoff_function = "linear"
reminder_backoff_limit = 3
[notify.telegram]
bot_token = "${telegram_bot_token}"
chat_id = "${telegram_chat_id}"
${telegram_enable}[notify.telegram]
${telegram_enable}bot_token = "${telegram_bot_token}"
${telegram_enable}chat_id = "${telegram_chat_id}"
[probe]

View file

@ -11,12 +11,15 @@ module "vigil_nginx_config" {
}
variable "telegram_token" {
type = string
default = ""
}
variable "telegram_channel" {
type = string
default = ""
}
variable "telegram_topic" {
type = string
default = ""
}
module "vigil" {
source = "./modules/vigil"