1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dendrite_ynh.git synced 2024-09-03 18:25:58 +02:00

Setup CORS in nginx.conf

This commit is contained in:
tituspijean 2022-08-24 20:56:30 +02:00
parent 0adb01e173
commit a2a4f6e56d
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720

View file

@ -5,8 +5,9 @@ location ~ ^/$ {
}
location /.well-known/matrix/server {
default_type application/json;
default_type application/json;
return 200 '{ "m.server": "__DOMAIN__:443" }';
more_set_headers "Access-Control-Allow-Origin: *";
}
location /.well-known/matrix/client {
@ -20,4 +21,5 @@ location /_matrix {
proxy_set_header Host $host;
proxy_read_timeout 600;
client_max_body_size 100M;
more_set_headers "Access-Control-Allow-Origin: *";
}