2020-07-19 09:26:12 +00:00
|
|
|
client_max_body_size 500M;
|
|
|
|
|
|
|
|
location /.well-known/matrix/ {
|
2020-07-30 13:37:39 +00:00
|
|
|
types { } default_type "application/json";
|
2020-07-19 09:26:12 +00:00
|
|
|
alias /etc/matrix-synapse/wellknown/;
|
|
|
|
add_header Access-Control-Allow-Origin *;
|
|
|
|
}
|
|
|
|
|
|
|
|
location /_matrix {
|
|
|
|
proxy_pass http://[::1]:8008;
|
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
|
|
}
|
|
|
|
|
|
|
|
location /_matrix/media {
|
2020-08-07 15:50:53 +00:00
|
|
|
proxy_read_timeout 600s;
|
2020-07-19 09:26:12 +00:00
|
|
|
proxy_set_header Host $host; # Make sure this matches your homeserver in media-repo.yaml
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
|
|
proxy_pass http://localhost:8010; # Point this towards media-repo
|
|
|
|
}
|