draupnir: only enable synapseHTTPAntispam if secret set
Some checks failed
Flake checks / Check (pull_request) Failing after 26s

This commit is contained in:
teutat3s 2025-05-22 01:21:12 +02:00
parent 28abbfce2f
commit f75783b898
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -32,7 +32,8 @@
http-antispam-authorization-file = mkOption {
description = "Path to synapse-http-antispam authorization file";
type = types.str;
type = types.nullOr types.str;
default = null;
};
};
@ -60,7 +61,7 @@
address = "127.0.200.101";
abuseReporting.enabled = true;
synapseHTTPAntispam = {
enabled = true;
enabled = if config.pub-solar-os.matrix.draupnir.http-antispam-authorization-file != null then true else false;
};
};
};