From c409a9050a29a98ed8cc39c1a26d342c4e9ec24e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Hampa=C3=AF?= Date: Tue, 6 Aug 2024 10:02:22 +0200 Subject: [PATCH 1/2] Update MSC3916 & MSC3911 location Update nginx configuration sample to support MSC3916 & MSC3911 production ready endpoint --- content/matrix-media-repo/unstable/deployment/body.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/matrix-media-repo/unstable/deployment/body.md b/content/matrix-media-repo/unstable/deployment/body.md index 1e2af7e..333f709 100644 --- a/content/matrix-media-repo/unstable/deployment/body.md +++ b/content/matrix-media-repo/unstable/deployment/body.md @@ -48,7 +48,7 @@ server { } # Redirect MSC3916 endpoints to MMR - location /_matrix/client/unstable/org.matrix.msc3916 { + location /_matrix/client/v1/media { proxy_read_timeout 60s; # Make sure this matches your homeserver in your MMR config @@ -60,7 +60,7 @@ server { proxy_set_header X-Forwarded-For $remote_addr; proxy_pass http://localhost:8000; # Point this towards media-repo } - location /_matrix/federation/unstable/org.matrix.msc3916 { + location /_matrix/federation/v1/media { proxy_read_timeout 60s; # Make sure this matches your homeserver in your MMR config From f68a9f456d388e303f879bc43eb14c91b0f3c14a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Hampa=C3=AF?= Date: Tue, 6 Aug 2024 10:03:59 +0200 Subject: [PATCH 2/2] Remove unwanted spaces --- content/matrix-media-repo/unstable/deployment/body.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/matrix-media-repo/unstable/deployment/body.md b/content/matrix-media-repo/unstable/deployment/body.md index 333f709..5cf6864 100644 --- a/content/matrix-media-repo/unstable/deployment/body.md +++ b/content/matrix-media-repo/unstable/deployment/body.md @@ -48,7 +48,7 @@ server { } # Redirect MSC3916 endpoints to MMR - location /_matrix/client/v1/media { + location /_matrix/client/v1/media { proxy_read_timeout 60s; # Make sure this matches your homeserver in your MMR config @@ -60,7 +60,7 @@ server { proxy_set_header X-Forwarded-For $remote_addr; proxy_pass http://localhost:8000; # Point this towards media-repo } - location /_matrix/federation/v1/media { + location /_matrix/federation/v1/media { proxy_read_timeout 60s; # Make sure this matches your homeserver in your MMR config