mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
31 lines
939 B
Nix
31 lines
939 B
Nix
import ./make-test-python.nix ({ pkgs, ...} : {
|
|
name = "roundcube";
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
maintainers = [ globin ];
|
|
};
|
|
|
|
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" ];
|
|
};
|
|
services.nginx.virtualHosts.roundcube = {
|
|
forceSSL = false;
|
|
enableACME = false;
|
|
};
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
$roundcube->start;
|
|
$roundcube->waitForUnit("postgresql.service");
|
|
$roundcube->waitForUnit("roundcube-setup.service");
|
|
$roundcube->waitForUnit("phpfpm-roundcube.service");
|
|
$roundcube->waitForUnit("nginx.service");
|
|
$roundcube->succeed("curl -sSfL http://roundcube/ | grep 'Keep me logged in'");
|
|
'';
|
|
})
|