Compare commits
No commits in common. "d3acd365cc03d25bcd6c902d7de003ef21b8a430" and "5f01e175a85cfb6dc201224b1049d088f31065b3" have entirely different histories.
d3acd365cc
...
5f01e175a8
4 changed files with 3 additions and 51 deletions
|
@ -1,44 +0,0 @@
|
|||
data "docker_registry_image" "mitmproxy" {
|
||||
name = "ghcr.io/benzine-framework/mitmproxy:10.1.1"
|
||||
}
|
||||
resource "docker_service" "mitmproxy" {
|
||||
name = "mitmproxy"
|
||||
task_spec {
|
||||
container_spec {
|
||||
image = "${data.docker_registry_image.mitmproxy.name}@${data.docker_registry_image.mitmproxy.sha256_digest}"
|
||||
command = [
|
||||
"mitmweb",
|
||||
"--web-host", "0.0.0.0",
|
||||
"--web-port", "8081",
|
||||
#"--listen-host", "0.0.0.0",
|
||||
#"--listen-port", "8080",
|
||||
"--ssl-insecure",
|
||||
]
|
||||
#healthcheck {
|
||||
# test = ["CMD-SHELL", " curl -I -x http://localhost:8080 -k http://172.17.0.1 || exit 1"]
|
||||
# start_period = "10s"
|
||||
# interval = "10s"
|
||||
# timeout = "5s"
|
||||
# retries = 5
|
||||
#}
|
||||
}
|
||||
restart_policy {
|
||||
condition = "any"
|
||||
delay = "0s"
|
||||
window = "0s"
|
||||
}
|
||||
}
|
||||
endpoint_spec {
|
||||
ports {
|
||||
target_port = 8081
|
||||
published_port = 8081
|
||||
publish_mode = "ingress"
|
||||
}
|
||||
ports {
|
||||
target_port = 8080
|
||||
published_port = 8080
|
||||
publish_mode = "ingress"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -21,7 +21,6 @@ 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
|
||||
})
|
||||
|
|
|
@ -59,9 +59,9 @@ reminder_interval = 600
|
|||
reminder_backoff_function = "linear"
|
||||
reminder_backoff_limit = 3
|
||||
|
||||
${telegram_enable}[notify.telegram]
|
||||
${telegram_enable}bot_token = "${telegram_bot_token}"
|
||||
${telegram_enable}chat_id = "${telegram_chat_id}"
|
||||
[notify.telegram]
|
||||
bot_token = "${telegram_bot_token}"
|
||||
chat_id = "${telegram_chat_id}"
|
||||
|
||||
[probe]
|
||||
|
||||
|
|
3
vigil.tf
3
vigil.tf
|
@ -11,15 +11,12 @@ 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"
|
||||
|
|
Loading…
Reference in a new issue