bundlewrap/data/nginx/files/extras/htz.ex42-1048908/matrix.franzi.business
Franzi 83ff19f3fb
All checks were successful
bundlewrap/pipeline/head This commit looks good
htz.ex42-1048908: fix matrix .well-known config
2020-07-30 15:37:39 +02:00

21 lines
689 B
Plaintext

client_max_body_size 500M;
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]:8008;
proxy_set_header X-Forwarded-For $remote_addr;
}
location /_matrix/media {
proxy_read_timeout 60s;
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
}