From 52b4311e78c78b297667acd9efd8e8cfbca473f1 Mon Sep 17 00:00:00 2001 From: q Date: Mon, 23 Sep 2024 18:53:30 -0400 Subject: [PATCH] Update nginx rule --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7f4efc2..49a5482 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ CustomMedia will only work when pulling media from homeservers that have not dis # Nginx configuration Add this inside of the block that matches for requests to /_matrix, replacing `server\.org` with your own homeserver ``` -location ~ ^/_matrix/media/(?[^/]+)/((download|thumbnail)/(?!(server\.org)/))(?.*)$ { +location ~ ^/_matrix(/media/(?[^/]+)|/client/v\d/media)/((download|thumbnail)/(?!(server\.org)/))(?.*)$ { proxy_pass http://localhost:9999; proxy_set_header X-Forwarded-For $remote_addr; proxy_read_timeout 3600s;