From a472ca465747c381c9249cc6bba30e58d0684373 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Fri, 12 Jul 2024 18:20:53 +0200 Subject: [PATCH] bw/bundles/matrix-media-repo: adjust config for 1.3.6 --- bundles/matrix-media-repo/files/config.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/bundles/matrix-media-repo/files/config.yaml b/bundles/matrix-media-repo/files/config.yaml index 5e4549f..0b07b0f 100644 --- a/bundles/matrix-media-repo/files/config.yaml +++ b/bundles/matrix-media-repo/files/config.yaml @@ -3,6 +3,9 @@ repo: bindAddress: '${node.metadata.get('matrix-media-repo/listen-addr', '127.0.0.1')}' port: ${node.metadata.get('matrix-media-repo/port', 20090)} logDirectory: '-' + logColors: false + jsonLogs: false + logLevel: 'info' trustAnyForwardedAddress: false useForwardedHost: true @@ -22,6 +25,9 @@ homeservers: csApi: "${config['domain']}" backoffAt: ${config.get('backoff_at', 10)} adminApiKind: "${config.get('api', 'matrix')}" +% if config.get('signing_key_path'): + signingKeyPath: "${config['signing_key_path']}" +% endif % endfor accessTokens: @@ -53,7 +59,9 @@ archiving: uploads: maxBytes: ${node.metadata.get('matrix-media-repo/upload_max_mb')*1024*1024} minBytes: 100 - reportedMaxBytes: 0 + #reportedMaxBytes: 0 + maxPending: 5 + maxAgeSeconds: 1800 quotas: enabled: false @@ -61,14 +69,6 @@ downloads: maxBytes: ${node.metadata.get('matrix-media-repo/download_max_mb')*1024*1024} numWorkers: ${node.metadata.get('matrix-media-repo/workers')} failureCacheMinutes: 5 - cache: - enabled: true - maxSizeBytes: ${node.metadata.get('matrix-media-repo/download_max_mb')*10*1024*1024} - maxFileSizeBytes: ${node.metadata.get('matrix-media-repo/download_max_mb')*1024*1024} - trackedMinutes: 30 - minDownloads: 5 - minCacheTimeSeconds: 300 - minEvictedTimeSeconds: 60 expireAfterDays: 0 urlPreviews: