add rtc foci
This commit is contained in:
parent
c92082e6bf
commit
d23b59a8cb
3 changed files with 48 additions and 41 deletions
|
|
@ -4,19 +4,26 @@
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
|
||||||
systemd.services = {
|
|
||||||
livekit.serviceConfig.Restart = lib.mkForce "always";
|
|
||||||
lk-jwt-service.serviceConfig.Restart = lib.mkForce "always";
|
|
||||||
};
|
|
||||||
|
|
||||||
services =
|
|
||||||
let
|
let
|
||||||
domain = "call.federated.nexus";
|
domain = "call.federated.nexus";
|
||||||
livekitDomain = "livekit.call.federated.nexus";
|
livekitDomain = "livekit.call.federated.nexus";
|
||||||
lkJwtServiceDomain = "lk-jwt.call.federated.nexus";
|
lkJwtServiceDomain = "lk-jwt.call.federated.nexus";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
systemd.services = {
|
||||||
|
livekit.serviceConfig.Restart = lib.mkForce "always";
|
||||||
|
lk-jwt-service.serviceConfig.Restart = lib.mkForce "always";
|
||||||
|
};
|
||||||
|
|
||||||
|
quad.matrix.settings.matrix_rtc.foci = [
|
||||||
|
{
|
||||||
|
type = "livekit";
|
||||||
|
livekit_service_url = lkJwtServiceDomain;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
services = {
|
||||||
livekit = {
|
livekit = {
|
||||||
enable = true;
|
enable = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
|
|
|
||||||
|
|
@ -38,8 +38,8 @@
|
||||||
src = pkgs.fetchFromCodeberg {
|
src = pkgs.fetchFromCodeberg {
|
||||||
owner = "lapingvino";
|
owner = "lapingvino";
|
||||||
repo = "cinny";
|
repo = "cinny";
|
||||||
rev = "8228227f64cf22c8cda2bc7cea1d5948d007822b";
|
rev = "2ccfeeabfa0f1ac22ba216d3e8a993199e46e8f5";
|
||||||
hash = "sha256-JcZ2jhKrxwtzbnhvCAS4yVF788TmocYoIOFJsV0QdbU=";
|
hash = "sha256-AeJnT4itxpoIu2MqEapi7zv5TomDuUuj0wVs9oMTxCs=";
|
||||||
};
|
};
|
||||||
npmDeps = pkgs.fetchNpmDeps {
|
npmDeps = pkgs.fetchNpmDeps {
|
||||||
inherit src;
|
inherit src;
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@
|
||||||
enable = config.quad.matrix.enable;
|
enable = config.quad.matrix.enable;
|
||||||
package = inputs.continuwuity.packages.${pkgs.stdenv.hostPlatform.system}.default;
|
package = inputs.continuwuity.packages.${pkgs.stdenv.hostPlatform.system}.default;
|
||||||
group = "caddy";
|
group = "caddy";
|
||||||
settings.global = config.quad.matrix.settings // {
|
settings.global = lib.recursiveUpdate {
|
||||||
server_name = config.quad.matrix.domain;
|
server_name = config.quad.matrix.domain;
|
||||||
unix_socket_path = socket;
|
unix_socket_path = socket;
|
||||||
|
|
||||||
|
|
@ -68,7 +68,7 @@
|
||||||
client = "https://${subdomain}";
|
client = "https://${subdomain}";
|
||||||
server = "${subdomain}:443";
|
server = "${subdomain}:443";
|
||||||
};
|
};
|
||||||
};
|
} config.quad.matrix.settings;
|
||||||
};
|
};
|
||||||
|
|
||||||
caddy.virtualHosts."${subdomain}".extraConfig = "reverse_proxy unix/${socket}";
|
caddy.virtualHosts."${subdomain}".extraConfig = "reverse_proxy unix/${socket}";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue