From dab2348b67fbb2362dbf473817c55637d6340101 Mon Sep 17 00:00:00 2001 From: spl3g Date: Tue, 2 Sep 2025 20:16:26 +0300 Subject: feat: add immich config --- nixos/server/configuration.nix | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) (limited to 'nixos') diff --git a/nixos/server/configuration.nix b/nixos/server/configuration.nix index fc74927..e921491 100644 --- a/nixos/server/configuration.nix +++ b/nixos/server/configuration.nix @@ -77,20 +77,25 @@ recommendedProxySettings = false; subdomains = { - # "cloud" = { - # proxyPass = "http://127.0.0.1:9200"; - # extraConfig = '' - # proxy_set_header Host $host; - # ''; - # }; "slskd" = { - proxyPass = "http://127.0.0.1:5030"; + proxyPass = "http://127.0.0.1:${toString config.services.slskd.settings.web.port}"; proxyWebsockets = true; }; + "immich" = { + proxyPass = "http://localhost:${toString config.services.immich.port}"; + proxyWebsockets = true; + recommendedProxySettings = true; + extraConfig = '' + client_max_body_size 50000M; + proxy_read_timeout 600s; + proxy_send_timeout 600s; + send_timeout 600s; + ''; + + }; "music".proxyPass = "http://127.0.0.1:4747"; - - "files".proxyPass = "http://127.0.0.1:9337"; + "files".proxyPass = "http://127.0.0.1:${toString config.services.filebrowser.settings.port}"; "track".proxyPass = "http://127.0.0.1:7093"; }; }; @@ -152,6 +157,9 @@ enable = true; extraGroups = ["music" "files"]; musicPaths = ["/srv/files/music"]; + settings = { + scan-watcher-enabled = true; + }; }; virtualisation.oci-containers.backend = "docker"; @@ -166,6 +174,10 @@ "/opt/traggo/data:/opt/traggo/data" ]; }; + + services.immich = { + enable = true; + }; system.stateVersion = "24.05"; } -- cgit v1.2.3