From 9c18a87866bba740b747f8773b69eb1caea543bf Mon Sep 17 00:00:00 2001 From: Daniel Olsen Date: Thu, 2 Feb 2023 18:51:47 +0100 Subject: [PATCH] element: disable presence if disabled in synapse --- hosts/jokum/services/matrix/element.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/hosts/jokum/services/matrix/element.nix b/hosts/jokum/services/matrix/element.nix index 00c6489..3b2fe28 100644 --- a/hosts/jokum/services/matrix/element.nix +++ b/hosts/jokum/services/matrix/element.nix @@ -1,6 +1,7 @@ { config, lib, pkgs, ... }: - -{ +let + synapse-cfg = config.services.matrix-synapse-next; +in { services.nginx.virtualHosts."chat.pvv.ntnu.no" = { enableACME = true; forceSSL = true; @@ -41,7 +42,8 @@ ]; enable_presence_by_hs_url = { "https://matrix.org" = false; - "https://matrix.dodsorf.as" = false; + # "https://matrix.dodsorf.as" = false; + "${synapse-cfg.settings.public_baseurl}" = synapse-cfg.settings.presence.enabled; }; }; };