Infini-DL360/immich: init

This commit is contained in:
Infinidoge 2024-09-29 03:32:43 -04:00
parent b092776562
commit ffcca5dc3f
Signed by: Infinidoge
SSH key fingerprint: SHA256:EMoPe5e2dO0gEvtBb2xkZTz5dkyL0rBmuiGTKG5s96E
2 changed files with 26 additions and 0 deletions

View file

@ -12,6 +12,7 @@
./freshrss.nix
./hedgedoc.nix
./hydra.nix
./immich.nix
./jellyfin.nix
./jupyter.nix
./postgresql.nix

View file

@ -0,0 +1,25 @@
{ config, pkgs, common, ... }:
let
domain = common.subdomain "photos";
cfg = config.services.immich;
in
{
services.nginx.virtualHosts.${domain} = common.nginx.ssl // {
extraConfig = ''
client_max_body_size 5000M;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
send_timeout 600s;
'';
locations."/" = {
proxyPass = "http://${cfg.host}:${toString cfg.port}";
proxyWebsockets = true;
};
};
services.immich = {
enable = true;
mediaLocation = "/srv/immich";
};
}