Update nginx rule

This commit is contained in:
q 2024-09-23 18:53:30 -04:00
parent 23ee203dd7
commit 52b4311e78

View File

@ -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/(?<folder>[^/]+)/((download|thumbnail)/(?!(server\.org)/))(?<file>.*)$ {
location ~ ^/_matrix(/media/(?<folder>[^/]+)|/client/v\d/media)/((download|thumbnail)/(?!(server\.org)/))(?<file>.*)$ {
proxy_pass http://localhost:9999;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_read_timeout 3600s;