2021-05-14 18:07:55 +00:00
|
|
|
location /.well-known/matrix/ {
|
|
|
|
types { } default_type "application/json";
|
|
|
|
alias /etc/matrix-synapse/wellknown/;
|
|
|
|
add_header Access-Control-Allow-Origin *;
|
|
|
|
}
|
|
|
|
|
|
|
|
location /_matrix {
|
|
|
|
proxy_pass http://[::1]:20080;
|
|
|
|
proxy_set_header Host "sophies-kitchen.eu";
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
2021-05-21 21:51:53 +00:00
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
2021-05-14 18:07:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
location /_matrix/media {
|
|
|
|
client_max_body_size 500M;
|
|
|
|
|
|
|
|
proxy_read_timeout 600s;
|
|
|
|
proxy_set_header Host "sophies-kitchen.eu";
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
2021-05-21 21:51:53 +00:00
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
2021-05-14 18:07:55 +00:00
|
|
|
proxy_pass http://localhost:20090;
|
|
|
|
}
|