blob: 48e7fa59b4eff587fdacd50f5209c6be0f4ef9c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
{ pkgs, ... }:
{
name = "roundcube";
meta = {
maintainers = [ ];
};
nodes = {
roundcube =
{ config, pkgs, ... }:
{
services.roundcube = {
enable = true;
hostName = "roundcube";
database.password = "not production";
package = pkgs.roundcube.withPlugins (plugins: [ plugins.persistent_login ]);
plugins = [ "persistent_login" ];
dicts = with pkgs.aspellDicts; [
en
fr
de
];
};
services.nginx.virtualHosts.roundcube = {
forceSSL = false;
enableACME = false;
};
};
};
testScript = ''
roundcube.start
roundcube.wait_for_unit("postgresql.target")
roundcube.wait_for_unit("phpfpm-roundcube.service")
roundcube.wait_for_unit("nginx.service")
t.assertIn("Keep me logged in", roundcube.succeed("curl -sSfL http://roundcube/"))
'';
}
|