about summary refs log tree commit diff
path: root/nixos/tests/rspamd.nix
AgeCommit message (Collapse)AuthorFilesLines
2022-03-28treewide: machine -> nodes.machineRobert Hensing1-5/+5
2021-11-21nixos/qemu-vm: default memorySize 384 -> 1024Artturin1-5/+0
the default hasn't been changed since 2009 this can improve our test performances nixos/tests: remove explicit memorySize <1024 1024MiB is now the default
2021-05-02nixos/tests/rspamd: increase memoryLuke Granger-Brown1-0/+5
rspamd seems to be consuming more memory now sometimes, causing OOMs in the test. Increase the memory given to these VMs to make the tests pass more reliably.
2021-04-14nixos/users: require one of users.users.name.{isSystemUser,isNormalUser}Symphorien Gibol1-1/+4
As the only consequence of isSystemUser is that if the uid is null then it's allocated below 500, if a user has uid = something below 500 then we don't require isSystemUser to be set. Motivation: https://github.com/NixOS/nixpkgs/issues/112647
2020-12-01Merge pull request #93293 from tnias/nixos_rspamd_20200716Jörg Thalheim1-26/+32
2020-11-30nixos/rspamd: fix postfix integrationJörg Thalheim1-26/+32
2020-11-23nixos/*: fix indentationzowoq1-1/+1
2019-12-11nixosTests.rspamd: port to pythonMartin Milata1-60/+99
2019-02-11nixos/tests/rspamd: fix eval warningsPierre Bourdon1-3/+13
trace: warning: The option `services.rspamd.bindUISocket' defined in `<unknown-file>' has been renamed to `services.rspamd.workers.controller.bindSockets'. trace: warning: The option `services.rspamd.bindSocket' defined in `<unknown-file>' has been renamed to `services.rspamd.workers.normal.bindSockets'. trace: warning: The option `services.rspamd.workers.”rspamd_proxy".type` defined in `<unknown-file>' has enum value `proxy` which has been renamed to `rspamd_proxy`
2018-11-25nixos/rspamd: Allow worker type to be proxy againBrian Olsen1-0/+1
When reworking the rspamd workers I disallowed `proxy` as a type and instead used `rspamd_proxy` which is the correct name for that worker type. That change breaks peoples existing config and so I have made this commit which allows `proxy` as a worker type again but makes it behave as `rspamd_proxy` and prints a warning if you use it.
2018-11-11tests: refactor to carry the package set as an argumentLéo Gaspard1-2/+7
This way, the package set will be possible to pass without re-importing all the time
2018-11-09Merge pull request #49809 from griff/rspamd-workersFranz Pletz1-0/+63
nixos/rspamd: Multiple workers, extraConfig priority & postfix integration
2018-11-09nixos/rspamd: Add options for postfix integrationBrian Olsen1-0/+44
The `rmilter` module has options for configuring `postfix` to use it but since that module is deprecated because rspamd now has a builtin worker that supports the milter protocol this commit adds similar `postfix` integration options directly to the `rspamd` module.
2018-11-06nixos/rspamd: Put extraConfig in included filesBrian Olsen1-1/+2
The lines stored in `extraConfig` and `worker.<name?>.extraConfig` should take precedent over values from included files but in order to do this in rspamd UCL they need to be stored in a file that then gets included with a high priority. This commit uses the overrides option to store the value of the two `extraConfig` options in `extra-config.inc` and `worker-<name?>.inc` respectively.
2018-11-06nixos/rspamd: Support multiple workersBrian Olsen1-0/+18
When the workers option for rspamd was originally implemented it was based on a flawed understanding of how workers are configured in rspamd. This meant that while rspamd supports configuring multiple workers of the same type, so that different controller workers could have different passwords, the NixOS module did not support this because it would write an invalid configuration file if you tried. Specifically a configuration like the one below: ``` workers.controller = {}; workers.controller2 = { type = "controller"; }; ``` Would result in a rspamd configuration of: ``` worker { type = "controller"; count = 1; .include "$CONFDIR/worker-controller.inc" } worker "controller2" { type = "controller"; count = 1; } ``` While to get multiple controller workers it should instead be: ``` worker "controller" { type = "controller"; count = 1; .include "$CONFDIR/worker-controller.inc" } worker "controller" { type = "controller"; count = 1; } ```
2018-11-05nixos/rspamd: Fix enable for locals and overridesBrian Olsen1-8/+29
When implementing #49620 I included an enable option for both the locals and overrides options but the code writing the files didn't actually look at enable and so would write the file regardless of its value. I also set the type to loaOf which should have been attrsOf since the code was not written to handle the options being lists. This fixes both of those issues.
2018-11-02nixos/rspamd: Add support for included filesBrian Olsen1-3/+74
By default rspamd will look for multiple files in /etc/rspamd/local.d and /etc/rspamd/override.d to be included in subsections of the merged final config for rspamd. Most of the config snippets in the official rspamd documentation are made to these files and so it makes sense for NixOS to support them and this is what this commit does. As part of rspamd 1.8.1 support was added for having custom Lua rules stored in $LOCAL_CONFDIR/rspamd.local.lua which means that it is now possible for NixOS to support such rules and so this commit also adds support for this to the rspamd module.
2018-09-28nixos/rspamd: Remove non-working socket activationBrian Olsen1-50/+4
The socket activation I added to the rspamd module doesn't actually work and can't be made to work without changes to rspamd. See: #47421 See: rspamd/rspamd#2035
2018-02-09nixos/rspamd: options for worker configuration and socket activationBrian Olsen1-5/+82
2018-02-03nixos/tests: add basic tests for services.rspamdBrian Olsen1-0/+63