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;