draupnir: only enable synapseHTTPAntispam if secret set
Some checks failed
Flake checks / Check (pull_request) Failing after 26s
Some checks failed
Flake checks / Check (pull_request) Failing after 26s
This commit is contained in:
parent
28abbfce2f
commit
f75783b898
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue