app-store/apps/matrix-conduit/nginx/matrix.conf.template
Сергей Кодолов 8377c72d60 app: Conduit
2023-05-08 16:17:31 +03:00

19 lines
526 B
Plaintext

server {
server_name ${APP_DOMAIN};
listen 80 default_server;
location /.well-known/matrix/server {
return 200 '{"m.server": "${APP_DOMAIN}:443"}';
types { } default_type "application/json; charset=utf-8";
}
location /.well-known/matrix/client {
return 200 '{"m.homeserver": {"base_url": "https://${APP_DOMAIN}"}}';
types { } default_type "application/json; charset=utf-8";
add_header "Access-Control-Allow-Origin" *;
}
location / {
return 404;
}
}