mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
40 lines
860 B
Nix
40 lines
860 B
Nix
import ./make-test.nix ({ ... }:
|
|
|
|
{
|
|
name = "owncloud";
|
|
nodes =
|
|
{ web =
|
|
{ ... }:
|
|
{
|
|
services.postgresql.enable = true;
|
|
services.httpd = {
|
|
enable = true;
|
|
logPerVirtualHost = true;
|
|
adminAddr = "example@example.com";
|
|
virtualHosts = [
|
|
{
|
|
hostName = "owncloud";
|
|
extraSubservices =
|
|
[
|
|
{
|
|
serviceType = "owncloud";
|
|
adminPassword = "secret";
|
|
dbPassword = "secret";
|
|
}
|
|
];
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
startAll;
|
|
|
|
$web->waitForUnit("postgresql");
|
|
$web->waitForUnit("httpd");
|
|
|
|
$web->succeed("curl -L 127.0.0.1:80");
|
|
'';
|
|
})
|