fix(immich): fix configuration

Immich recently had some breaking changes.
This commit is contained in:
Felix Schröter 2023-12-09 00:45:12 +01:00
parent c56ba030fc
commit 816ded51de
Signed by: felschr
GPG key ID: 671E39E6744C807D

View file

@ -44,7 +44,6 @@ let
"--add-host=immich-server:127.0.0.1" "--add-host=immich-server:127.0.0.1"
"--add-host=immich-microservices:127.0.0.1" "--add-host=immich-microservices:127.0.0.1"
"--add-host=immich-machine-learning:127.0.0.1" "--add-host=immich-machine-learning:127.0.0.1"
"--add-host=immich-web:127.0.0.1"
"--add-host=immich-typesense:127.0.0.1" "--add-host=immich-typesense:127.0.0.1"
"--label=io.containers.autoupdate=registry" "--label=io.containers.autoupdate=registry"
]; ];
@ -78,7 +77,6 @@ in {
"${ociBackend}-immich-server.service" "${ociBackend}-immich-server.service"
"${ociBackend}-immich-microservices.service" "${ociBackend}-immich-microservices.service"
"${ociBackend}-immich-machine-learning.service" "${ociBackend}-immich-machine-learning.service"
"${ociBackend}-immich-web.service"
"${ociBackend}-immich-typesense.service" "${ociBackend}-immich-typesense.service"
]; ];
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
@ -98,7 +96,7 @@ in {
virtualisation.oci-containers.containers = { virtualisation.oci-containers.containers = {
immich-server = immichBase // { immich-server = immichBase // {
image = "ghcr.io/immich-app/immich-server:release"; image = "ghcr.io/immich-app/immich-server:release";
ports = [ "3001:3001" ]; ports = [ "2283:3001" ];
entrypoint = "/bin/sh"; entrypoint = "/bin/sh";
cmd = [ "./start-server.sh" ]; cmd = [ "./start-server.sh" ];
volumes = [ "${uploadDir}:/usr/src/app/upload" ]; volumes = [ "${uploadDir}:/usr/src/app/upload" ];
@ -118,13 +116,6 @@ in {
volumes = [ "${uploadDir}:/usr/src/app/upload" ]; volumes = [ "${uploadDir}:/usr/src/app/upload" ];
}; };
immich-web = immichBase // {
image = "ghcr.io/immich-app/immich-web:release";
ports = [ "3000:3000" ];
entrypoint = "/bin/sh";
cmd = [ "./entrypoint.sh" ];
};
immich-typesense = { immich-typesense = {
image = "docker.io/typesense/typesense:0.24.0"; image = "docker.io/typesense/typesense:0.24.0";
environment.TYPESENSE_DATA_DIR = "/data"; environment.TYPESENSE_DATA_DIR = "/data";
@ -160,7 +151,7 @@ in {
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
locations."/api" = { locations."/api" = {
proxyPass = "http://localhost:3001"; proxyPass = "http://localhost:2283";
extraConfig = '' extraConfig = ''
rewrite /api/(.*) /$1 break; rewrite /api/(.*) /$1 break;
client_max_body_size 50000M; client_max_body_size 50000M;