aboutsummaryrefslogtreecommitdiff
path: root/nomad
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2020-03-04 11:55:42 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2020-03-04 11:55:42 +0100
commit7569ac34d2fd7bc30139c14671ddd1ec498ec13e (patch)
tree1b5da84fd101b869370cf7714d37ae4a9f6b0a5c /nomad
parentaeda90a8dac80fea2441ffbad0ef15962adf868f (diff)
downloadinfrastructure-7569ac34d2fd7bc30139c14671ddd1ec498ec13e.tar.gz
infrastructure-7569ac34d2fd7bc30139c14671ddd1ec498ec13e.zip
[matrix] Disable logging for easybridge as it is not safe
Diffstat (limited to 'nomad')
-rw-r--r--nomad/chat.hcl70
1 files changed, 4 insertions, 66 deletions
diff --git a/nomad/chat.hcl b/nomad/chat.hcl
index 0b63eca..37467d7 100644
--- a/nomad/chat.hcl
+++ b/nomad/chat.hcl
@@ -123,72 +123,6 @@ job "chat" {
}
}
}
-/*
- group "facebook_bridge" {
- count = 1
- task "fb2mx" {
- driver = "docker"
- config {
- # https://mau.dev/tulir/mautrix-facebook/container_registry
- image = "dock.mau.dev/tulir/mautrix-facebook:latest"
- port_map {
- api_port = 29319
- }
- volumes = [
- "secrets/conf:/data"
- ]
- }
-
- resources {
- memory = 50
- network {
- port "api_port" {
- static = "29319"
- }
- }
- }
-
- service {
- tags = ["mxbridge"]
- port = "api_port"
- address_mode = "host"
- name = "fb2mx"
- check {
- type = "tcp"
- port = "api_port"
- interval = "60s"
- timeout = "5s"
- check_restart {
- limit = 3
- grace = "90s"
- ignore_warnings = false
- }
- }
- }
-
- artifact {
- source = "http://127.0.0.1:8500/v1/kv/configuration/chat/fb2mx/registration.yaml?raw"
- destination = "secrets/tpl/registration.yaml.tpl"
- mode = "file"
- }
- template {
- source = "secrets/tpl/registration.yaml.tpl"
- destination = "secrets/conf/registration.yaml"
- }
-
- artifact {
- source = "http://127.0.0.1:8500/v1/kv/configuration/chat/fb2mx/config.yaml?raw"
- destination = "secrets/tpl/config.yaml.tpl"
- mode = "file"
- }
- template {
- source = "secrets/tpl/config.yaml.tpl"
- destination = "secrets/conf/config.yaml"
- }
- }
- }
-*/
-
group "easybridge" {
count = 1
@@ -204,6 +138,10 @@ job "chat" {
"secrets/conf:/data"
]
args = [ "./easybridge", "-config", "/data/config.json" ]
+ /* Logging leak a huge amount of sensitive data, disabling it for now */
+ logging {
+ type = "none"
+ }
}
artifact {