Update nginx rule
This commit is contained in:
parent
23ee203dd7
commit
52b4311e78
@ -13,7 +13,7 @@ CustomMedia will only work when pulling media from homeservers that have not dis
|
|||||||
# Nginx configuration
|
# Nginx configuration
|
||||||
Add this inside of the block that matches for requests to /_matrix, replacing `server\.org` with your own homeserver
|
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_pass http://localhost:9999;
|
||||||
proxy_set_header X-Forwarded-For $remote_addr;
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
proxy_read_timeout 3600s;
|
proxy_read_timeout 3600s;
|
||||||
|
Loading…
Reference in New Issue
Block a user