make test vm use mysql db
This commit is contained in:
parent
3429d2ea63
commit
ce44d19168
|
@ -62,24 +62,24 @@ in
|
||||||
description = "Database name for Seahub web interface. Not required for sqlite.";
|
description = "Database name for Seahub web interface. Not required for sqlite.";
|
||||||
};
|
};
|
||||||
passwordFile = mkOption {
|
passwordFile = mkOption {
|
||||||
type = types.nullOr types.str;
|
type = types.nullOr types.str;
|
||||||
default = null;
|
default = null;
|
||||||
description = ''
|
description = ''
|
||||||
The full path to a file that contains the database password.
|
The full path to a file that contains the database password.
|
||||||
Not required for sqlite.
|
Not required for sqlite.
|
||||||
'';
|
'';
|
||||||
};
|
|
||||||
host = mkOption {
|
|
||||||
type = types.nullOr types.str;
|
|
||||||
default = "localhost";
|
|
||||||
description = "Database host.";
|
|
||||||
};
|
|
||||||
dbport = mkOption {
|
|
||||||
type = with types; nullOr (either int str);
|
|
||||||
default = 3306;
|
|
||||||
description = "Database port. Not required for sqlite.";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
host = mkOption {
|
||||||
|
type = types.nullOr types.str;
|
||||||
|
default = "localhost";
|
||||||
|
description = "Database host.";
|
||||||
|
};
|
||||||
|
port = mkOption {
|
||||||
|
type = with types; nullOr (either int str);
|
||||||
|
default = 3306;
|
||||||
|
description = "Database port. Not required for sqlite.";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
user = mkOption {
|
user = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
|
|
|
@ -26,6 +26,10 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
#autorun = false;
|
#autorun = false;
|
||||||
domainName = "seaf.local";
|
domainName = "seaf.local";
|
||||||
|
db = {
|
||||||
|
type = "mysql";
|
||||||
|
passwordFile = toString (pkgs.writeText "testPW" "lol");
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue