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:
parent
0adb01e173
commit
a2a4f6e56d
1 changed files with 3 additions and 1 deletions
|
@ -7,6 +7,7 @@ location ~ ^/$ {
|
||||||
location /.well-known/matrix/server {
|
location /.well-known/matrix/server {
|
||||||
default_type application/json;
|
default_type application/json;
|
||||||
return 200 '{ "m.server": "__DOMAIN__:443" }';
|
return 200 '{ "m.server": "__DOMAIN__:443" }';
|
||||||
|
more_set_headers "Access-Control-Allow-Origin: *";
|
||||||
}
|
}
|
||||||
|
|
||||||
location /.well-known/matrix/client {
|
location /.well-known/matrix/client {
|
||||||
|
@ -20,4 +21,5 @@ location /_matrix {
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_read_timeout 600;
|
proxy_read_timeout 600;
|
||||||
client_max_body_size 100M;
|
client_max_body_size 100M;
|
||||||
|
more_set_headers "Access-Control-Allow-Origin: *";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue