Compare commits

...

2 commits

Author SHA1 Message Date
183b33db4d
refactor(matrix): remove unused Instagram registration config
All checks were successful
Lint / lint (push) Successful in 32s
Terraform Plan and Apply / cicd (push) Successful in 41s
2025-01-19 21:34:06 +00:00
737ab31ebd
refactor(matrix): inline logging config 2025-01-19 21:33:54 +00:00

View file

@ -121,7 +121,7 @@ job "matrix" {
port: 5433
cp_min: 5
cp_max: 10
log_config: "/data/brmartin.co.uk.log.config"
log_config: "{{ env "NOMAD_TASK_DIR" }}/log_config.yaml"
registration_shared_secret: "{{ with nomadVar "nomad/jobs/matrix/synapse/synapse" }}{{ .registration_shared_secret }}{{ end }}"
report_stats: true
macaroon_secret_key: "{{ with nomadVar "nomad/jobs/matrix/synapse/synapse" }}{{ .macaroon_secret_key }}{{ end }}"
@ -132,7 +132,6 @@ job "matrix" {
- server_name: "matrix.org"
app_service_config_files:
- /local/matrix-whatsapp-registration.yaml
- /data/matrix-instagram-registration.yaml
turn_uris: [ "turn:turn.brmartin.co.uk?transport=udp", "turn:turn.brmartin.co.uk?transport=tcp" ]
turn_shared_secret: "{{ with nomadVar "nomad/jobs/matrix/synapse/synapse" }}{{ .turn_shared_secret }}{{ end }}"
turn_user_lifetime: 86400000
@ -186,6 +185,32 @@ job "matrix" {
destination = "local/synapse-config.yaml"
}
template {
data = <<-EOF
version: 1
formatters:
structured:
class: synapse.logging.TerseJsonFormatter
handlers:
console:
class: logging.StreamHandler
formatter: structured
loggers:
synapse.federation.transport.server.federation:
level: WARN
synapse.access.http.8008:
level: WARN
synapse.util.caches.response_cache:
level: WARN
root:
level: WARN
handlers: [console]
disable_existing_loggers: false
EOF
destination = "local/log_config.yaml"
}
resources {
cpu = 500
memory = 256