diff options
author | Azat Bahawi <azat@bahawi.net> | 2023-05-21 23:10:32 +0300 |
---|---|---|
committer | Azat Bahawi <azat@bahawi.net> | 2023-05-21 23:10:32 +0300 |
commit | b07e10139c88d6060e57ca52b2dc12b17b53ac82 (patch) | |
tree | 5b5cddc2f47bddb8e8914aa66ae18d52cd519965 /modules/nixos/matrix | |
parent | 2023-05-06 (diff) |
2023-05-21
Diffstat (limited to '')
-rw-r--r-- | modules/nixos/matrix/dendrite.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/modules/nixos/matrix/dendrite.nix b/modules/nixos/matrix/dendrite.nix index d9c4914..d7c7b18 100644 --- a/modules/nixos/matrix/dendrite.nix +++ b/modules/nixos/matrix/dendrite.nix @@ -67,6 +67,7 @@ in { }; }; }; + postgresql = { enable = true; extraPostStart = [ @@ -75,6 +76,25 @@ in { '' ]; }; + + # Silence annoying errors when connecting to poorly configured federated + # homeservers. + promtail.filters = [ + { + match = { + selector = ''{syslog_identifier="dendrite"} |~ ".*Failed to fetch key for server.*"''; + action = "drop"; + drop_counter_reason = "noisy_error"; + }; + } + { + match = { + selector = ''{syslog_identifier="dendrite"} |~ ".*could not download key for.*"''; + action = "drop"; + drop_counter_reason = "noisy_error"; + }; + } + ]; }; services.postgresql = { |