This repository has been archived on 2023-05-02. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
neo/custom/proxy/config/vhost.d/default
2023-03-16 01:10:22 +01:00

31 lines
No EOL
824 B
Text

## Start of configuration add by letsencrypt container
location ^~ /.well-known/acme-challenge/ {
auth_basic off;
auth_request off;
allow all;
root /usr/share/nginx/html;
try_files $uri =404;
break;
}
## End of configuration add by letsencrypt container
location /_/nginx {
add_header Content-Type text/html;
return 200 "Nginx is working...";
}
location /_matrix {
proxy_pass http://dendrite:8008;
}
location /.well-known/matrix/server {
add_header Content-Type application/json;
return 200 '{"m.server":"ixvd.net:443"}';
}
location /.well-known/matrix/client {
add_header Content-Type application/json;
add_header Access-Control-Allow-Origin *;
return 200 '{"m.homeserver":{"base_url":"https://ixvd.net"},"m.identity_server":{"base_url":"https://vector.im"}}';
}