mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
add immich
This commit is contained in:
parent
a2c68fe62d
commit
3a47a82360
2 changed files with 22 additions and 0 deletions
17
hosts/gerg-desktop/services/immich.nix
Normal file
17
hosts/gerg-desktop/services/immich.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
users.users.${config.services.immich.user}.extraGroups = [ "postgres" ];
|
||||
services.immich = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
database = {
|
||||
enable = true;
|
||||
createDB = true;
|
||||
};
|
||||
mediaLocation = "/persist/services/immich";
|
||||
machine-learning.enable = false;
|
||||
settings = null;
|
||||
port = 2283;
|
||||
host = "0.0.0.0";
|
||||
};
|
||||
}
|
||||
|
|
@ -86,6 +86,11 @@
|
|||
'';
|
||||
};
|
||||
};
|
||||
"photos.gerg-l.com" = {
|
||||
forceSSL = true;
|
||||
useACMEHost = "gerg-l.com";
|
||||
locations."/".proxyPass = "http://localhost:${toString config.services.immich.port}";
|
||||
};
|
||||
};
|
||||
};
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue