Update matrix well-known files
Some checks failed
Publish Docker image / Push Docker image to Docker registry (push) Failing after 28s
Some checks failed
Publish Docker image / Push Docker image to Docker registry (push) Failing after 28s
This commit is contained in:
parent
52196c54ca
commit
0d99fe513f
3 changed files with 12 additions and 17 deletions
19
nginx.conf
19
nginx.conf
|
@ -17,15 +17,18 @@ http {
|
||||||
index index.html index.htm;
|
index index.html index.htm;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /.well-known {
|
location /.well-known/matrix/server {
|
||||||
alias /usr/share/nginx/html/.well-known;
|
access_log off;
|
||||||
}
|
add_header Access-Control-Allow-Origin *;
|
||||||
|
default_type application/json;
|
||||||
|
return 200 '{"m.server": "matrix.depeuter.dev:443"}';
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
location /.well-known/matrix/client {
|
||||||
listen 12345;
|
access_log off;
|
||||||
listen [::]:12345;
|
add_header Access-Control-Allow-Origin *;
|
||||||
server_name up.depeuter.dev;
|
default_type application/json;
|
||||||
proxy_pass http://192.168.0.11/9301;
|
return 200 '{"m.homeserver": {"base_url": "https://matrix.depeuter.dev"}}';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
{
|
|
||||||
"m.homeserver": {
|
|
||||||
"base_url": "https://matrix.depeuter.dev"
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,3 +0,0 @@
|
||||||
{
|
|
||||||
"m.server": "matrix.depeuter.dev:443"
|
|
||||||
}
|
|
Loading…
Reference in a new issue