From 9c474327ff16b9edd844e1645f76bc350b738bc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Sun, 19 Mar 2023 21:50:34 +0200 Subject: [PATCH] a few more secrets --- configuration.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/configuration.nix b/configuration.nix index 7c26a41..0c616d9 100644 --- a/configuration.nix +++ b/configuration.nix @@ -371,11 +371,6 @@ in { ''; }; - # TODO secrets: - # - registration_shared_secret - # - macaroon_secret_key - # - turn_shared_secret - # TODO: # app_service_config_files matrix-synapse = { enable = true; @@ -385,6 +380,7 @@ in { enable_registration = false; report_stats = true; signing_key_path = "/run/matrix-synapse/jakstys.lt.signing.key"; + extraConfigFiles = [ "/run/matrix-synapse/secrets.yaml" ]; log_config = pkgs.writeText "log.config" '' version: 1 formatters: @@ -569,9 +565,15 @@ in { preStart = '' mkdir -p /run/matrix-synapse/ ln -sf ''${CREDENTIALS_DIRECTORY}/jakstys.lt.signing.key /run/matrix-synapse/jakstys.lt.signing.key + cat > /run/matrix-synapse/secrets.yaml <