aboutsummaryrefslogtreecommitdiff
path: root/app/im/config
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-12-30 13:47:47 +0100
committerAlex Auvolat <alex@adnab.me>2021-12-30 13:47:47 +0100
commit8d48f3bf7ff858a75ba3b2c3ef25195b445c8942 (patch)
treea21765fd87daaa8b18379c31458212c1b51e6e3a /app/im/config
parenta6c4828cb66eb74ef2320f9fa06b59ae299e5c5f (diff)
downloadnixcfg-8d48f3bf7ff858a75ba3b2c3ef25195b445c8942.tar.gz
nixcfg-8d48f3bf7ff858a75ba3b2c3ef25195b445c8942.zip
Use rclone-mounted garage as synapse media store
Diffstat (limited to 'app/im/config')
-rw-r--r--app/im/config/homeserver.yaml2
-rw-r--r--app/im/config/synapse.log.config.yaml23
2 files changed, 24 insertions, 1 deletions
diff --git a/app/im/config/homeserver.yaml b/app/im/config/homeserver.yaml
index 8204f14..0caacfe 100644
--- a/app/im/config/homeserver.yaml
+++ b/app/im/config/homeserver.yaml
@@ -804,7 +804,7 @@ database:
# A yaml python logging config file as described by
# 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 ##
diff --git a/app/im/config/synapse.log.config.yaml b/app/im/config/synapse.log.config.yaml
new file mode 100644
index 0000000..0b5622e
--- /dev/null
+++ b/app/im/config/synapse.log.config.yaml
@@ -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