Compare commits
2 commits
6065adef2c
...
183b33db4d
Author | SHA1 | Date | |
---|---|---|---|
183b33db4d | |||
737ab31ebd |
1 changed files with 27 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue