From 9f84522877433e5979c58860dcced5d90d7b77eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Schr=C3=B6ter?= Date: Sun, 10 Dec 2023 15:32:26 +0100 Subject: [PATCH] fix(immich): fix nginx config --- services/immich.nix | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/services/immich.nix b/services/immich.nix index 65f7fa2..16a1bbe 100644 --- a/services/immich.nix +++ b/services/immich.nix @@ -97,7 +97,7 @@ in { virtualisation.oci-containers.containers = { immich-server = immichBase // { image = "ghcr.io/immich-app/immich-server:${tag}"; - ports = [ "2283:3001" ]; + ports = [ "3001:3001" ]; entrypoint = "/bin/sh"; cmd = [ "./start-server.sh" ]; volumes = [ "${uploadDir}:/usr/src/app/upload" ]; @@ -151,15 +151,8 @@ in { services.nginx.virtualHosts.${domain} = { enableACME = true; forceSSL = true; - locations."/api" = { - proxyPass = "http://localhost:2283"; - extraConfig = '' - rewrite /api/(.*) /$1 break; - client_max_body_size 50000M; - ''; - }; locations."/" = { - proxyPass = "http://localhost:3000"; + proxyPass = "http://localhost:3001"; extraConfig = '' client_max_body_size 50000M; '';