Matrix migration + coturn test

This commit is contained in:
Aleksandr Lebedev 2025-10-12 23:59:54 +02:00
parent 8990d85503
commit ca80a34135
5 changed files with 140 additions and 26 deletions

View file

@ -9,7 +9,7 @@
extraConfig = ''
add_header Access-Control-Allow-Origin *;
add_header Content-Type application/json;
return 200 '{"m.homeserver": { "base_url": "https://matrix.kylekrein.com/" }, "org.matrix.msc3575.proxy": { "url": "https://matrix.kylekrein.com/"}, "org.matrix.msc4143.rtc_foci": [ { "type": "livekit", "livekit_service_url": "https://livekit-jwt.call.matrix.org" } ] }';
return 200 '{"m.homeserver": { "base_url": "https://matrix.kylekrein.com" }, "org.matrix.msc3575.proxy": { "url": "https://matrix.kylekrein.com"}}';
'';
};
"~ ^/\\.well-known/matrix/server$" = {
@ -18,12 +18,6 @@
return 200 '{"m.server": "matrix.kylekrein.com:443"}';
'';
};
"~ ^/\\.well-known/element/element.json$" = {
extraConfig = ''
add_header Content-Type application/json;
return 200 '{"call":{"widget_url":"https://call.element.io"}}';
'';
};
"/" = {
proxyPass = "http://127.0.0.1:6167";
};
@ -36,25 +30,22 @@ in {
recommendedGzipSettings = true;
virtualHosts = {
# "kylekrein.com" = {
# enableACME = true;
# forceSSL = true;
#locations = config.services.nginx.virtualHosts."matrix.kylekrein.com".locations;
#};
"kylekrein.com" = {
enableACME = true;
forceSSL = true;
locations = config.services.nginx.virtualHosts."matrix.kylekrein.com".locations;
};
#"matrix.kylekrein.com" = {
# enableACME = true;
# forceSSL = true;
# locations = matrixLocations;
#};
"turn.kylekrein.com" = {
enableACME = true;
forceSSL = true;
};
#"git.kylekrein.com" = {
# enableACME = true;
# forceSSL = true;
# locations."/" = {
# proxyPass = "http://unix:/run/gitlab/gitlab-workhorse.socket";
# };
#};
"matrix.kylekrein.com" = {
enableACME = true;
forceSSL = true;
locations = matrixLocations;
};
"immich.kylekrein.com" = {
enableACME = true;