fix: matrix rtc mapping
This commit is contained in:
parent
1a3d1f1fdd
commit
20f8049d64
4 changed files with 49 additions and 15 deletions
|
|
@ -29,6 +29,19 @@ in
|
|||
proxyWebsockets = true;
|
||||
};
|
||||
}
|
||||
# {
|
||||
# type = "proxy";
|
||||
# domain = net.devices.remote_proxy.domain;
|
||||
# endpoint = "/.well-known/matrix/";
|
||||
# force_ssl = true;
|
||||
# port = 443;
|
||||
# content = {
|
||||
# type = "service";
|
||||
# ip = net.devices.pi.ip;
|
||||
# port = services.continuwuity.port;
|
||||
# proxyWebsockets = true;
|
||||
# };
|
||||
# }
|
||||
{
|
||||
type = "inline";
|
||||
domain = net.devices.remote_proxy.domain;
|
||||
|
|
@ -37,6 +50,11 @@ in
|
|||
port = 443;
|
||||
content = {
|
||||
contentType = "application/json";
|
||||
headers = {
|
||||
Access-Control-Allow-Origin = "*";
|
||||
Access-Control-Allow-Methods = "GET, POST, PUT, DELETE, OPTIONS";
|
||||
Access-Control-Allow-Headers = "X-Requested-With, Content-Type, Authorization";
|
||||
};
|
||||
status = 200;
|
||||
body = ''{"m.server":"${net.devices.remote_proxy.domain}:443"}'';
|
||||
};
|
||||
|
|
@ -49,20 +67,13 @@ in
|
|||
port = 443;
|
||||
content = {
|
||||
contentType = "application/json";
|
||||
headers = {
|
||||
Access-Control-Allow-Origin = "*";
|
||||
Access-Control-Allow-Methods = "GET, POST, PUT, DELETE, OPTIONS";
|
||||
Access-Control-Allow-Headers = "X-Requested-With, Content-Type, Authorization";
|
||||
};
|
||||
status = 200;
|
||||
body = ''
|
||||
{
|
||||
"m.homeserver": {
|
||||
"base_url": "https://${net.devices.remote_proxy.domain}"
|
||||
},
|
||||
"org.matrix.msc4143.rtc_foci": [
|
||||
{
|
||||
"type": "livekit",
|
||||
"livekit_service_url": "https://livekit.${net.devices.remote_proxy.domain}"
|
||||
}
|
||||
]
|
||||
}
|
||||
'';
|
||||
body = ''{"m.homeserver": {"base_url": "https://${net.devices.remote_proxy.domain}"},"org.matrix.msc3575.proxy":{"url":"https://nudelerde.de/"},"org.matrix.msc4143.rtc_foci": [{"type": "livekit","livekit_service_url": "https://livekit.${net.devices.remote_proxy.domain}"}]}'';
|
||||
};
|
||||
}
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue