2019-11-06 18:07:18 +03:00
|
|
|
import ./make-test-python.nix ({ pkgs, ...} : {
|
2018-10-11 11:09:29 +03:00
|
|
|
name = "roundcube";
|
2021-01-10 22:08:30 +03:00
|
|
|
meta = with pkgs.lib.maintainers; {
|
2018-10-11 11:09:29 +03:00
|
|
|
maintainers = [ globin ];
|
|
|
|
};
|
|
|
|
|
|
|
|
nodes = {
|
|
|
|
roundcube = { config, pkgs, ... }: {
|
|
|
|
services.roundcube = {
|
|
|
|
enable = true;
|
|
|
|
hostName = "roundcube";
|
2019-11-04 13:03:00 +03:00
|
|
|
database.password = "not production";
|
2019-02-01 00:45:14 +03:00
|
|
|
package = pkgs.roundcube.withPlugins (plugins: [ plugins.persistent_login ]);
|
|
|
|
plugins = [ "persistent_login" ];
|
2020-04-10 15:00:00 +03:00
|
|
|
dicts = with pkgs.aspellDicts; [ en fr de ];
|
2018-10-11 11:09:29 +03:00
|
|
|
};
|
|
|
|
services.nginx.virtualHosts.roundcube = {
|
|
|
|
forceSSL = false;
|
|
|
|
enableACME = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript = ''
|
2019-11-22 19:01:29 +03:00
|
|
|
roundcube.start
|
|
|
|
roundcube.wait_for_unit("postgresql.service")
|
|
|
|
roundcube.wait_for_unit("phpfpm-roundcube.service")
|
|
|
|
roundcube.wait_for_unit("nginx.service")
|
|
|
|
roundcube.succeed("curl -sSfL http://roundcube/ | grep 'Keep me logged in'")
|
2018-10-11 11:09:29 +03:00
|
|
|
'';
|
|
|
|
})
|