Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

docs/workers.md media_repository regex on federation port #8695

@localguru

Description

@localguru

Description

This is not a bug, but should be mentioned in docs/workers.md:
If homeserver A sends an image to homeserver B, homerserver B is asking for the image on the federation port 8448 to get the media on URL /_matrix/media/. If (on homeserver A) worker_app: synapse.app.media_repository is enabled and client and federation are split to different vhosts (443 and 8448) the regex /_matrix/media/for the media worker must point to the internal media worker port in nginx vhost for federation port 8448 too. Otherwise homeserver B gets a 404 (not found) on the federation port 8448 of homeserver A. The mean thing is that on homeserver B, the user/client gets the message "Error decrypting image" and not something like "not found".

So it might be a good idea to mention under "synapse.app.media_repository" in docs/workers.md that the regex location /_matrix/media/ for the media worker must be available on client and federation port.

Version information

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-Docsthings relating to the documentationZ-Help-WantedWe know exactly how to fix this issue, and would be grateful for any contribution

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions