1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dendrite_ynh.git synced 2024-09-03 18:25:58 +02:00
This commit is contained in:
yalh76 2022-09-26 00:58:05 +02:00
parent 15f4690baf
commit a7f20354b2

View file

@ -1,14 +1,15 @@
rewrite ^$ /; rewrite ^$ /;
location ~ ^/$ { location ~ ^/$ {
default_type text/plain; default_type text/plain;
return 200 "This is where Dendrite is installed."; return 200 "This is where Dendrite is installed.";
} }
location /_matrix { location /_matrix {
proxy_pass http://localhost:__PORT__; proxy_pass http://localhost:__PORT__;
proxy_set_header X-Forwarded-For $remote_addr; more_set_headers "X-Forwarded-For: $remote_addr";
proxy_set_header Host $host; more_set_headers "X-Real-IP: $remote_addr";
proxy_read_timeout 600; more_set_headers "Host: $host";
client_max_body_size 100M; proxy_read_timeout 600;
more_set_headers "Access-Control-Allow-Origin: *"; client_max_body_size 100M;
more_set_headers "Access-Control-Allow-Origin: *";
} }