immich: fix redis

This commit is contained in:
Motiejus Jakštys 2024-10-19 21:50:21 +03:00
parent 3fb21ca846
commit c3cae6ecc7
1 changed files with 9 additions and 2 deletions

View File

@ -46,6 +46,15 @@ in
package = immich-package; package = immich-package;
enable = true; enable = true;
port = myData.ports.immich-server; port = myData.ports.immich-server;
# TODO: remove the whole block 24.11: redis should listen on the unix socket
# if immich can't find/connect to redis, it will fail on boot, so it's
# safe to experiment.
redis = {
enable = true;
host = "127.0.0.1";
port = 6379;
};
}; };
services.caddy.virtualHosts."photos.jakstys.lt:80".extraConfig = '' services.caddy.virtualHosts."photos.jakstys.lt:80".extraConfig = ''
@ -65,8 +74,6 @@ in
CapabilityBoundingSet = lib.mkForce "~"; CapabilityBoundingSet = lib.mkForce "~";
ExecStart = lib.mkForce ("!" + (lib.getExe startScript)); ExecStart = lib.mkForce ("!" + (lib.getExe startScript));
PrivateUsers = lib.mkForce false; # bindfs fails otherwise PrivateUsers = lib.mkForce false; # bindfs fails otherwise
SupplementaryGroups = lib.mkForce [ "immich" ]; # TODO remove on 24.11
}; };
}; };