update matrix-media-repo to 1.3.1

This commit is contained in:
Franzi 2023-09-09 20:39:23 +02:00
parent b38ba55ed3
commit 40aeeab265
Signed by: kunsi
GPG key ID: 12E3D2136B818350
4 changed files with 32 additions and 29 deletions

View file

@ -1,7 +1,7 @@
# General repo configuration # General repo configuration
repo: repo:
bindAddress: '${node.metadata['matrix-media-repo'].get('listen-addr', '127.0.0.1')}' bindAddress: '${node.metadata.get('matrix-media-repo/listen-addr', '127.0.0.1')}'
port: ${node.metadata['matrix-media-repo'].get('port', 20090)} port: ${node.metadata.get('matrix-media-repo/port', 20090)}
logDirectory: '-' logDirectory: '-'
trustAnyForwardedAddress: false trustAnyForwardedAddress: false
useForwardedHost: true useForwardedHost: true
@ -10,14 +10,14 @@ federation:
backoffAt: 20 backoffAt: 20
database: database:
postgres: "postgres://${node.metadata['matrix-media-repo']['database']['user']}:${node.metadata['matrix-media-repo']['database']['password']}@${node.metadata['matrix-media-repo']['database'].get('host', 'localhost')}/${node.metadata['matrix-media-repo']['database']['database']}?sslmode=disable" postgres: "postgres://${node.metadata.get('matrix-media-repo/database/user')}:${node.metadata.get('matrix-media-repo/database/password')}@${node.metadata.get('matrix-media-repo/database/host', 'localhost')}/${node.metadata.get('matrix-media-repo/database/database')}?sslmode=disable"
pool: pool:
maxConnections: 25 maxConnections: 25
maxIdleConnections: 5 maxIdleConnections: 5
homeservers: homeservers:
% for homeserver, config in node.metadata['matrix-media-repo'].get('homeservers', {}).items(): % for homeserver, config in node.metadata.get('matrix-media-repo/homeservers').items():
- name: ${homeserver} - name: ${homeserver}
csApi: "${config['domain']}" csApi: "${config['domain']}"
backoffAt: ${config.get('backoff_at', 10)} backoffAt: ${config.get('backoff_at', 10)}
@ -29,45 +29,42 @@ accessTokens:
useLocalAppserviceConfig: false useLocalAppserviceConfig: false
admins: admins:
% for user in sorted(node.metadata['matrix-media-repo']['admins']): % for user in sorted(node.metadata.get('matrix-media-repo/admins')):
- "${user}" - "${user}"
% endfor % endfor
sharedSecretAuth: sharedSecretAuth:
enabled: false enabled: false
token: "${node.metadata['matrix-media-repo']['shared-secret-token']}" token: "${node.metadata.get('matrix-media-repo/shared-secret-token')}"
datastores: datastores:
- type: file - type: file
id: "${node.metadata.get('matrix-media-repo/datastore_id')}"
enabled: true enabled: true
forKinds: forKinds: ['all']
- 'thumbnails'
- 'remote_media'
- 'local_media'
- 'archives'
opts: opts:
path: /var/matrix/media path: /var/matrix/media
archiving: archiving:
enabled: true enabled: true
selfService: ${str(node.metadata['matrix-media-repo']['archive']['self-service']).lower()} selfService: ${str(node.metadata.get('matrix-media-repo/archive/self-service')).lower()}
targetBytesPerPart: ${node.metadata['matrix-media-repo']['archive'].get('mb_per_part', node.metadata['matrix-media-repo']['upload_max_mb']*2)*1024*1024} targetBytesPerPart: ${node.metadata.get('matrix-media-repo/archive/mb_per_part', node.metadata.get('matrix-media-repo/upload_max_mb')*2)*1024*1024}
uploads: uploads:
maxBytes: ${node.metadata['matrix-media-repo']['upload_max_mb']*1024*1024} maxBytes: ${node.metadata.get('matrix-media-repo/upload_max_mb')*1024*1024}
minBytes: 100 minBytes: 100
reportedMaxBytes: 0 reportedMaxBytes: 0
quotas: quotas:
enabled: false enabled: false
downloads: downloads:
maxBytes: ${node.metadata['matrix-media-repo']['download_max_mb']*1024*1024} maxBytes: ${node.metadata.get('matrix-media-repo/download_max_mb')*1024*1024}
numWorkers: ${node.metadata['matrix-media-repo']['workers']} numWorkers: ${node.metadata.get('matrix-media-repo/workers')}
failureCacheMinutes: 5 failureCacheMinutes: 5
cache: cache:
enabled: true enabled: true
maxSizeBytes: ${node.metadata['matrix-media-repo']['download_max_mb']*10*1024*1024} maxSizeBytes: ${node.metadata.get('matrix-media-repo/download_max_mb')*10*1024*1024}
maxFileSizeBytes: ${node.metadata['matrix-media-repo']['upload_max_mb']*1024*1024} maxFileSizeBytes: ${node.metadata.get('matrix-media-repo/download_max_mb')*1024*1024}
trackedMinutes: 30 trackedMinutes: 30
minDownloads: 5 minDownloads: 5
minCacheTimeSeconds: 300 minCacheTimeSeconds: 300
@ -76,7 +73,7 @@ downloads:
urlPreviews: urlPreviews:
enabled: true enabled: true
maxPageSizeBytes: ${node.metadata['matrix-media-repo']['preview_max_mb']*1024*1024} maxPageSizeBytes: ${node.metadata.get('matrix-media-repo/preview_max_mb')*1024*1024}
previewUnsafeCertificates: false previewUnsafeCertificates: false
numWords: 50 numWords: 50
maxLength: 200 maxLength: 200
@ -84,7 +81,7 @@ urlPreviews:
maxTitleLength: 150 maxTitleLength: 150
filePreviewTypes: filePreviewTypes:
- "image/*" - "image/*"
numWorkers: ${node.metadata['matrix-media-repo']['workers']} numWorkers: ${node.metadata.get('matrix-media-repo/workers')}
disallowedNetworks: disallowedNetworks:
- "127.0.0.1/8" - "127.0.0.1/8"
- "10.0.0.0/8" - "10.0.0.0/8"
@ -103,8 +100,8 @@ urlPreviews:
oEmbed: false oEmbed: false
thumbnails: thumbnails:
maxSourceBytes: ${node.metadata['matrix-media-repo']['preview_max_mb']*1024*1024} maxSourceBytes: ${node.metadata.get('matrix-media-repo/preview_max_mb')*1024*1024}
numWorkers: ${node.metadata['matrix-media-repo']['workers']} numWorkers: ${node.metadata.get('matrix-media-repo/workers')}
sizes: sizes:
- width: 32 - width: 32
height: 32 height: 32
@ -134,7 +131,7 @@ thumbnails:
- "video/mp4" - "video/mp4"
allowAnimated: true allowAnimated: true
defaultAnimated: false defaultAnimated: false
maxAnimateSizeBytes: ${node.metadata['matrix-media-repo']['preview_max_mb']*1024*1024} maxAnimateSizeBytes: ${node.metadata.get('matrix-media-repo/preview_max_mb')*1024*1024}
stillFrame: 0.5 stillFrame: 0.5
expireAfterDays: 0 expireAfterDays: 0

View file

@ -29,6 +29,9 @@ bundles = [
"zfs", "zfs",
] ]
# for auto-deployment of salonkatrin.de
[metadata.apt.packages.jekyll]
[metadata.check-mail-received.t-online] [metadata.check-mail-received.t-online]
email = "franzi.kunsmann@t-online.de" email = "franzi.kunsmann@t-online.de"
imap_host = "secureimap.t-online.de" imap_host = "secureimap.t-online.de"
@ -65,9 +68,10 @@ gateway6 = "2a0a:51c0:0:225::1"
[metadata.matrix-media-repo] [metadata.matrix-media-repo]
admins = ["@kunsi:franzi.business"] admins = ["@kunsi:franzi.business"]
sha1 = "0915bdf7c461368859180419d1f66717969cbe32" datastore_id = "3fff5da324ed784c771d638bb6be5917"
sha1 = "0f9e686f9538baa059eba91e56b320e38ae6125b"
upload_max_mb = 500 upload_max_mb = 500
version = "v1.2.13" version = "v1.3.1"
[metadata.matrix-media-repo.homeservers.'franzi.business'] [metadata.matrix-media-repo.homeservers.'franzi.business']
api = "synapse" api = "synapse"
domain = "http://[::1]:20080/" domain = "http://[::1]:20080/"

View file

@ -42,10 +42,11 @@ defaultCountryCode = "DE"
jitsi.preferredDomain = "meet.ffmuc.net" jitsi.preferredDomain = "meet.ffmuc.net"
[metadata.matrix-media-repo] [metadata.matrix-media-repo]
version = "v1.2.13"
sha1 = "0915bdf7c461368859180419d1f66717969cbe32"
admins = ['@administress:afra.berlin'] admins = ['@administress:afra.berlin']
datastore_id = "e33b50474021fba9977f912414cdd7fe8890ed57"
sha1 = "0f9e686f9538baa059eba91e56b320e38ae6125b"
upload_max_mb = 50 upload_max_mb = 50
version = "v1.3.1"
[metadata.matrix-media-repo.homeservers.'afra.berlin'] [metadata.matrix-media-repo.homeservers.'afra.berlin']
domain = "http://[::1]:20080/" domain = "http://[::1]:20080/"

View file

@ -113,8 +113,9 @@ nodes['htz-cloud.miniserver'] = {
}, },
}, },
'matrix-media-repo': { 'matrix-media-repo': {
'version': 'v1.2.13', 'version': 'v1.3.1',
'sha1': '0915bdf7c461368859180419d1f66717969cbe32', 'datastore_id': '99c09e24edc4e9be6c4c9486bc147e385bc87044',
'sha1': '0f9e686f9538baa059eba91e56b320e38ae6125b',
'homeservers': { 'homeservers': {
'sophies-kitchen.eu': { 'sophies-kitchen.eu': {
'domain': 'http://[::1]:20080/', 'domain': 'http://[::1]:20080/',