Switch from mirotalk p2p to sfu
This commit is contained in:
1 parent
cccfcb255d
commit
41359f9649
6 files changed
+39
-22
No files matched your search
@@ -18,13 +18,21 @@ in
|
||||
hostHttpPort = mkOption {
|
||||
type = types.port;
|
||||
};
|
||||
minPort = mkOption {
|
||||
type = types.port;
|
||||
};
|
||||
maxPort = mkOption {
|
||||
type = types.port;
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf rootCfg.enable {
|
||||
virtualisation.oci-containers.containers."${cfg.name}" = {
|
||||
image = "docker.io/mirotalk/p2p@sha256:c05675e2e3e8a2bb1ee63f07dcaaf8523a30b4dee4d1e594594ff5e36c959b07"; # 1.9.39 (2026-09-03)
|
||||
image = "docker.io/mirotalk/sfu@sha256:0e2bba6dde0be9c6b2138b9ff988aa46ec23c7421a6313551c13735355081a17"; # 2.6.79 (2026-10-23)
|
||||
ports = [
|
||||
"0.0.0.0:${toString cfg.hostHttpPort}:3000"
|
||||
"0.0.0.0:${toString cfg.hostHttpPort}:3010"
|
||||
"0.0.0.0:${toString cfg.minPort}-${toString cfg.maxPort}:${toString cfg.minPort}-${toString cfg.maxPort}/tcp"
|
||||
"0.0.0.0:${toString cfg.minPort}-${toString cfg.maxPort}:${toString cfg.minPort}-${toString cfg.maxPort}/udp"
|
||||
];
|
||||
user = "${common.user.uid}:${common.group.gid}";
|
||||
environmentFiles = [ config.sops.templates."mirotalk.env".path ];
|
||||
@@ -43,9 +51,6 @@ in
|
||||
};
|
||||
wantedBy = [ "${common.backend}-${rootCfg.targetName}.target" ];
|
||||
partOf = [ "${common.backend}-${rootCfg.targetName}.target" ];
|
||||
after = lib.optionals config.selfhosted.turn.enable [
|
||||
"${common.backend}-${config.selfhosted.turn.name}.service"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user