Update nginx rule
This commit is contained in:
		@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user