nixos/tests/nextcloud: fix with-declarative-redis-and-secrets test

This commit is contained in:
Sandro Jäckel 2023-11-25 22:58:06 +01:00
parent b0f478b861
commit 79e3ab84dd
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -41,10 +41,13 @@ in {
};
secretFile = "/etc/nextcloud-secrets.json";
extraOptions.redis = {
dbindex = 0;
timeout = 1.5;
# password handled via secretfile below
extraOptions = {
allow_local_remote_servers = true;
redis = {
dbindex = 0;
timeout = 1.5;
# password handled via secretfile below
};
};
configureRedis = true;
};
@ -62,6 +65,7 @@ in {
services.postgresql = {
enable = true;
package = pkgs.postgresql_14;
};
systemd.services.postgresql.postStart = pkgs.lib.mkAfter ''
password=$(cat ${passFile})