diff --git a/hosts/Infini-DL360/default.nix b/hosts/Infini-DL360/default.nix index 5fb252d..ce0df38 100644 --- a/hosts/Infini-DL360/default.nix +++ b/hosts/Infini-DL360/default.nix @@ -12,6 +12,7 @@ ./freshrss.nix ./hedgedoc.nix ./hydra.nix + ./immich.nix ./jellyfin.nix ./jupyter.nix ./postgresql.nix diff --git a/hosts/Infini-DL360/immich.nix b/hosts/Infini-DL360/immich.nix new file mode 100644 index 0000000..9a90ae2 --- /dev/null +++ b/hosts/Infini-DL360/immich.nix @@ -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"; + }; +}