Use rclone-mounted garage as synapse media store

This commit is contained in:
Alex 2021-12-30 13:47:47 +01:00
parent a6c4828cb6
commit 8d48f3bf7f
No known key found for this signature in database
GPG key ID: EDABF9711E244EB1
3 changed files with 30 additions and 2 deletions

View file

@ -804,7 +804,7 @@ database:
# A yaml python logging config file as described by # A yaml python logging config file as described by
# https://docs.python.org/3.7/library/logging.config.html#configuration-dictionary-schema # https://docs.python.org/3.7/library/logging.config.html#configuration-dictionary-schema
# #
log_config: "/data/matrix.home.adnab.me.log.config" log_config: "/etc/matrix-synapse/synapse.log.config.yaml"
## Ratelimiting ## ## Ratelimiting ##

View file

@ -0,0 +1,23 @@
version: 1
formatters:
precise:
format: '%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - %(request)s - %(message)s'
handlers:
console:
class: logging.StreamHandler
formatter: precise
loggers:
synapse.storage.SQL:
# beware: increasing this to DEBUG will make synapse log sensitive
# information such as access tokens.
level: INFO
root:
level: INFO
handlers: [console]
disable_existing_loggers: false

View file

@ -66,7 +66,7 @@ job "im" {
volumes = [ volumes = [
"secrets:/etc/matrix-synapse", "secrets:/etc/matrix-synapse",
"../alloc/data:/ephemeral", "../alloc/data:/ephemeral",
"/mnt/ssd/synapse:/data", "/mnt/garage-staging/synapse-data:/data",
] ]
} }
@ -75,6 +75,11 @@ job "im" {
destination = "secrets/homeserver.yaml" destination = "secrets/homeserver.yaml"
} }
template {
data = file("../config/synapse.log.config.yaml")
destination = "secrets/synapse.log.config.yaml"
}
template { template {
data = "{{ key \"secrets/synapse/signing_key\" }}" data = "{{ key \"secrets/synapse/signing_key\" }}"
destination = "secrets/signing_key" destination = "secrets/signing_key"