element: disable presence if disabled in synapse

This commit is contained in:
Daniel Lovbrotte Olsen 2023-02-02 18:51:47 +01:00
parent 73aa42a5f5
commit 9c18a87866
1 changed files with 5 additions and 3 deletions

View File

@ -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;
};
};
};