From 6a191f4caf4e79b4f74e897e2746b51acb586495 Mon Sep 17 00:00:00 2001 From: naturallaw77 Date: Sun, 18 Jun 2023 20:14:09 -0700 Subject: [PATCH] removed systemd unit coturnssl --- modules/coturn.nix | 30 +----------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/modules/coturn.nix b/modules/coturn.nix index 095af97..68bbf66 100644 --- a/modules/coturn.nix +++ b/modules/coturn.nix @@ -4,35 +4,7 @@ let personalization = import ./personalization.nix; in { - systemd.services.sslcoturn = { - script = '' - cp -n /var/lib/caddy/.local/share/caddy/certificates/acme.zerossl.com-v2-dv90/${personalization.matrix_url}/${personalization.matrix_url}.crt /var/lib/coturn/${personalization.matrix_url}.crt.pem - - cp -n /var/lib/caddy/.local/share/caddy/certificates/acme.zerossl.com-v2-dv90/${personalization.matrix_url}/${personalization.matrix_url}.key /var/lib/coturn/${personalization.matrix_url}.key.pem - - chown turnserver:turnserver /var/lib/coturn -R - - chmod 770 /var/lib/coturn -R - - systemctl restart coturn - ''; - - unitConfig = { - Type = "simple"; - After = "NetworkManager.service"; - Requires = "network-online.target"; - }; - - serviceConfig = { - RemainAfterExit = "yes"; - Type = "oneshot"; - }; - - wantedBy = [ "multi-user.target" ]; - }; - - - services.coturn = { + services.coturn = { enable = true; use-auth-secret = true; static-auth-secret = "${personalization.age.secrets.turn.file}";