bvm-prosody: add coturn

This commit is contained in:
Luke Granger-Brown 2021-03-28 22:46:55 +00:00
parent efe1aa51db
commit 5a3a55e302

View file

@ -3,7 +3,10 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
{ ... }: { ... }:
{ let
inherit (depot.ops) secrets;
machineSecrets = secrets.machineSpecific.bvm-prosody;
in {
imports = [ imports = [
../lib/bvm.nix ../lib/bvm.nix
]; ];
@ -19,5 +22,12 @@
}; };
my.ip.tailscale = "100.86.22.44"; my.ip.tailscale = "100.86.22.44";
services.coturn = {
enable = true;
use-auth-secret = true;
realm = "turn.lukegb.com";
static-auth-secret = machineSecrets.turnSecret;
};
system.stateVersion = "21.05"; system.stateVersion = "21.05";
} }