mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-19 17:56:19 +03:00
Merge remote-tracking branch 'origin/release-v1.111' into matrix-org-hotfixes
This commit is contained in:
commit
9fc80af80c
8 changed files with 31 additions and 5 deletions
17
CHANGES.md
17
CHANGES.md
|
@ -1,3 +1,20 @@
|
||||||
|
# Synapse 1.111.0rc2 (2024-07-10)
|
||||||
|
|
||||||
|
### Bugfixes
|
||||||
|
|
||||||
|
- Fix bug where using `synapse.app.media_repository` worker configuration would break the new media endpoints. ([\#17420](https://github.com/element-hq/synapse/issues/17420))
|
||||||
|
|
||||||
|
### Improved Documentation
|
||||||
|
|
||||||
|
- Document the new federation media worker endpoints in the [upgrade notes](https://element-hq.github.io/synapse/v1.111/upgrade.html) and [worker docs](https://element-hq.github.io/synapse/v1.111/workers.html). ([\#17421](https://github.com/element-hq/synapse/issues/17421))
|
||||||
|
|
||||||
|
### Internal Changes
|
||||||
|
|
||||||
|
- Route authenticated federation media requests to media repository workers in Complement tests. ([\#17422](https://github.com/element-hq/synapse/issues/17422))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Synapse 1.111.0rc1 (2024-07-09)
|
# Synapse 1.111.0rc1 (2024-07-09)
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
|
6
debian/changelog
vendored
6
debian/changelog
vendored
|
@ -1,3 +1,9 @@
|
||||||
|
matrix-synapse-py3 (1.111.0~rc2) stable; urgency=medium
|
||||||
|
|
||||||
|
* New synapse release 1.111.0rc2.
|
||||||
|
|
||||||
|
-- Synapse Packaging team <packages@matrix.org> Wed, 10 Jul 2024 08:46:54 +0000
|
||||||
|
|
||||||
matrix-synapse-py3 (1.111.0~rc1) stable; urgency=medium
|
matrix-synapse-py3 (1.111.0~rc1) stable; urgency=medium
|
||||||
|
|
||||||
* New synapse release 1.111.0rc1.
|
* New synapse release 1.111.0rc1.
|
||||||
|
|
|
@ -126,6 +126,7 @@ WORKERS_CONFIG: Dict[str, Dict[str, Any]] = {
|
||||||
"^/_synapse/admin/v1/media/.*$",
|
"^/_synapse/admin/v1/media/.*$",
|
||||||
"^/_synapse/admin/v1/quarantine_media/.*$",
|
"^/_synapse/admin/v1/quarantine_media/.*$",
|
||||||
"^/_matrix/client/v1/media/.*$",
|
"^/_matrix/client/v1/media/.*$",
|
||||||
|
"^/_matrix/federation/v1/media/.*$",
|
||||||
],
|
],
|
||||||
# The first configured media worker will run the media background jobs
|
# The first configured media worker will run the media background jobs
|
||||||
"shared_extra_conf": {
|
"shared_extra_conf": {
|
||||||
|
|
|
@ -119,13 +119,14 @@ stacking them up. You can monitor the currently running background updates with
|
||||||
|
|
||||||
# Upgrading to v1.111.0
|
# Upgrading to v1.111.0
|
||||||
|
|
||||||
## New worker endpoints for authenticated client media
|
## New worker endpoints for authenticated client and federation media
|
||||||
|
|
||||||
[Media repository workers](./workers.md#synapseappmedia_repository) handling
|
[Media repository workers](./workers.md#synapseappmedia_repository) handling
|
||||||
Media APIs can now handle the following endpoint pattern:
|
Media APIs can now handle the following endpoint patterns:
|
||||||
|
|
||||||
```
|
```
|
||||||
^/_matrix/client/v1/media/.*$
|
^/_matrix/client/v1/media/.*$
|
||||||
|
^/_matrix/federation/v1/media/.*$
|
||||||
```
|
```
|
||||||
|
|
||||||
Please update your reverse proxy configuration.
|
Please update your reverse proxy configuration.
|
||||||
|
|
|
@ -740,6 +740,7 @@ Handles the media repository. It can handle all endpoints starting with:
|
||||||
|
|
||||||
/_matrix/media/
|
/_matrix/media/
|
||||||
/_matrix/client/v1/media/
|
/_matrix/client/v1/media/
|
||||||
|
/_matrix/federation/v1/media/
|
||||||
|
|
||||||
... and the following regular expressions matching media-specific administration APIs:
|
... and the following regular expressions matching media-specific administration APIs:
|
||||||
|
|
||||||
|
|
|
@ -97,7 +97,7 @@ module-name = "synapse.synapse_rust"
|
||||||
|
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "matrix-synapse"
|
name = "matrix-synapse"
|
||||||
version = "1.111.0rc1"
|
version = "1.111.0rc2"
|
||||||
description = "Homeserver for the Matrix decentralised comms protocol"
|
description = "Homeserver for the Matrix decentralised comms protocol"
|
||||||
authors = ["Matrix.org Team and Contributors <packages@matrix.org>"]
|
authors = ["Matrix.org Team and Contributors <packages@matrix.org>"]
|
||||||
license = "AGPL-3.0-or-later"
|
license = "AGPL-3.0-or-later"
|
||||||
|
|
|
@ -321,7 +321,7 @@ def register_servlets(
|
||||||
servletclass == FederationMediaDownloadServlet
|
servletclass == FederationMediaDownloadServlet
|
||||||
or servletclass == FederationMediaThumbnailServlet
|
or servletclass == FederationMediaThumbnailServlet
|
||||||
):
|
):
|
||||||
if not hs.config.server.enable_media_repo:
|
if not hs.config.media.can_load_media_repo:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
servletclass(
|
servletclass(
|
||||||
|
|
|
@ -145,7 +145,7 @@ class ClientRestResource(JsonResource):
|
||||||
password_policy.register_servlets(hs, client_resource)
|
password_policy.register_servlets(hs, client_resource)
|
||||||
knock.register_servlets(hs, client_resource)
|
knock.register_servlets(hs, client_resource)
|
||||||
appservice_ping.register_servlets(hs, client_resource)
|
appservice_ping.register_servlets(hs, client_resource)
|
||||||
if hs.config.server.enable_media_repo:
|
if hs.config.media.can_load_media_repo:
|
||||||
from synapse.rest.client import media
|
from synapse.rest.client import media
|
||||||
|
|
||||||
media.register_servlets(hs, client_resource)
|
media.register_servlets(hs, client_resource)
|
||||||
|
|
Loading…
Reference in a new issue