feat(nixos): bfs: fix: element-rtc

This commit is contained in:
2025-12-05 18:17:41 +00:00
parent 49bf4c6d91
commit 5177f9a1f6
4 changed files with 119 additions and 16 deletions

View File

@@ -46,8 +46,9 @@ in {
{
names = [
"client"
# Ability speak between different matrix servers, requires .well-known
#"federation"
# Ability speak between different matrix servers and get
# global id, requires .well-known
"federation"
];
compress = false;
}
@@ -127,6 +128,13 @@ in {
locations."/" = {
proxyPass = "http://127.0.0.1:8008";
};
locations."=/.well-known/matrix/server" = {
extraConfig = ''
default_type application/json;
add_header Access-Control-Allow-Origin *;
'';
return = "200 '{\"m.server\": \"${cfg.matrixDomain}:443\"}'";
};
};
};