2021-05-21 18:33:14 +00:00
|
|
|
location /.well-known/matrix/client {
|
|
|
|
return 200 '{"m.homeserver": {"base_url": "https://matrix.franzi.business"},"m.identity_server": {"base_url": "https://matrix.org"},"im.vector.riot.jitsi": {"preferredDomain": "meet.ffmuc.net"}}';
|
|
|
|
default_type application/json;
|
|
|
|
add_header Access-Control-Allow-Origin *;
|
|
|
|
}
|
|
|
|
|
|
|
|
location /.well-known/matrix/server {
|
|
|
|
return 200 '{"m.server": "matrix.franzi.business:443"}';
|
|
|
|
default_type application/json;
|
2020-07-19 09:26:12 +00:00
|
|
|
add_header Access-Control-Allow-Origin *;
|
|
|
|
}
|
|
|
|
|
|
|
|
location /_matrix {
|
2020-09-20 08:29:19 +00:00
|
|
|
proxy_pass http://[::1]:20080;
|
2020-11-09 12:06:03 +00:00
|
|
|
proxy_set_header Host "franzi.business";
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
2020-07-19 09:26:12 +00:00
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
|
|
}
|
|
|
|
|
|
|
|
location /_matrix/media {
|
2021-02-12 15:01:35 +00:00
|
|
|
client_max_body_size 500M;
|
|
|
|
|
2020-08-07 15:50:53 +00:00
|
|
|
proxy_read_timeout 600s;
|
2020-11-09 12:06:03 +00:00
|
|
|
proxy_set_header Host "franzi.business";
|
2020-07-19 09:26:12 +00:00
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
2021-02-12 15:01:35 +00:00
|
|
|
proxy_pass http://localhost:20090;
|
2020-07-19 09:26:12 +00:00
|
|
|
}
|