initial commit
This commit is contained in:
commit
e42a8b560f
2 changed files with 110 additions and 0 deletions
19
nginx/matrix.conf
Normal file
19
nginx/matrix.conf
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
server {
|
||||
server_name chat.techwork.zone;
|
||||
listen 80 default_server;
|
||||
|
||||
location /.well-known/matrix/server {
|
||||
return 200 '{"m.server": "chat.techwork.zone:443"}';
|
||||
types { } default_type "application/json; charset=utf-8";
|
||||
}
|
||||
|
||||
location /.well-known/matrix/client {
|
||||
return 200 '{"m.homeserver": {"base_url": "https://chat.techwork.zone"}}';
|
||||
types { } default_type "application/json; charset=utf-8";
|
||||
add_header "Access-Control-Allow-Origin" *;
|
||||
}
|
||||
|
||||
location / {
|
||||
return 404;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue