bundles/matrix-synapse: media-repo needs more paths now
This commit is contained in:
parent
b2028855d1
commit
08f2c46c31
1 changed files with 8 additions and 7 deletions
|
@ -144,7 +144,8 @@ def nginx(metadata):
|
||||||
}
|
}
|
||||||
|
|
||||||
if node.has_bundle('matrix-media-repo'):
|
if node.has_bundle('matrix-media-repo'):
|
||||||
locations['/_matrix/media'] = {
|
for path in ('/_matrix/media', '/_matrix/client/v1/media', '/_matrix/federation/v1/media'):
|
||||||
|
locations[path] = {
|
||||||
'target': 'http://localhost:20090',
|
'target': 'http://localhost:20090',
|
||||||
'max_body_size': '{}M'.format(metadata.get('matrix-media-repo/upload_max_mb')),
|
'max_body_size': '{}M'.format(metadata.get('matrix-media-repo/upload_max_mb')),
|
||||||
# matrix-media-repo needs this to be the
|
# matrix-media-repo needs this to be the
|
||||||
|
|
Loading…
Reference in a new issue