From 35988e788856d477781c76fa79e9e592217c3e0e Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Tue, 15 Apr 2025 10:26:46 +0200 Subject: [PATCH] feat(coturn): update configuration for secret management Removed comment clutter and streamlined the configuration for better readability and maintenance. Ensured the sops secrets and ACME certificate handling remain functional. --- systems/x86_64-linux/mx/coturn.nix | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/systems/x86_64-linux/mx/coturn.nix b/systems/x86_64-linux/mx/coturn.nix index fd6b792..45fb964 100644 --- a/systems/x86_64-linux/mx/coturn.nix +++ b/systems/x86_64-linux/mx/coturn.nix @@ -1,12 +1,11 @@ -{ - pkgs, - lib, - config, - ... +{ pkgs +, lib +, config +, ... }: { sops.secrets."coturn/static-auth-secret" = { - sopsFile = ../../../.secrets/hetzner/coturn.yaml; # bring your own password file + sopsFile = ../../../.secrets/hetzner/coturn.yaml; restartUnits = [ "coturn.service" ]; owner = "turnserver"; }; @@ -36,7 +35,6 @@ # get a certificate security.acme.certs.${config.services.coturn.realm} = { - # insert here the right configuration to obtain a certificate postRun = "systemctl restart coturn.service"; group = "turnserver"; };