git: 211738cbe078 - main - www/immich: Set the machine learning URL

From: Jochen Neumeister <joneum_at_FreeBSD.org>
Date: Mon, 21 Sep 2026 04:18:04 UTC
The branch main has been updated by joneum:

URL: https://cgit.FreeBSD.org/ports/commit/?id=211738cbe0788918b5abd7eb7d21a8547ba0d1d2

commit 211738cbe0788918b5abd7eb7d21a8547ba0d1d2
Author:     Jochen Neumeister <joneum@FreeBSD.org>
AuthorDate: 2026-09-21 04:17:19 +0000
Commit:     Jochen Neumeister <joneum@FreeBSD.org>
CommitDate: 2026-09-21 04:17:51 +0000

    www/immich: Set the machine learning URL
    
    Immich defaults to the Docker hostname immich-machine-learning, which
    never resolves outside a container, so the service ran unnoticed while
    the server reported it unhealthy.  The rc script now sets
    IMMICH_MACHINE_LEARNING_URL, adjustable with immich_server_ml_url.
    
    Sponsored by:   Netzkommune GmbH
---
 www/immich/Makefile               | 2 +-
 www/immich/files/immich_server.in | 2 ++
 www/immich/files/pkg-message.in   | 6 +++---
 3 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/www/immich/Makefile b/www/immich/Makefile
index eda7a7539a83..d1a625c386fa 100644
--- a/www/immich/Makefile
+++ b/www/immich/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	immich
 DISTVERSIONPREFIX=	v
 DISTVERSION=	3.2.2
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	www
 MASTER_SITES=	https://github.com/joneum/FreeBSD-Immich/releases/download/v${DISTVERSION}/:buildkit
 DISTFILES=	immich-freebsd-buildkit-${DISTVERSION}${EXTRACT_SUFX}:buildkit
diff --git a/www/immich/files/immich_server.in b/www/immich/files/immich_server.in
index ab04d1c63258..66642338d12c 100644
--- a/www/immich/files/immich_server.in
+++ b/www/immich/files/immich_server.in
@@ -30,6 +30,7 @@ load_rc_config $name
 : ${immich_server_media_location:=/var/db/immich}
 : ${immich_server_host:=0.0.0.0}
 : ${immich_server_port:=2283}
+: ${immich_server_ml_url:=http://127.0.0.1:3003}
 : ${immich_server_env_file:=%%PREFIX%%/etc/immich.env}
 : ${immich_server_env:="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
 	HOME=${immich_server_media_location} \
@@ -38,6 +39,7 @@ load_rc_config $name
 	IMMICH_MEDIA_LOCATION=${immich_server_media_location} \
 	IMMICH_HOST=${immich_server_host} \
 	IMMICH_PORT=${immich_server_port} \
+	IMMICH_MACHINE_LEARNING_URL=${immich_server_ml_url} \
 	FFMPEG_PATH=%%PREFIX%%/bin/jellyfin-ffmpeg8 \
 	FFPROBE_PATH=%%PREFIX%%/bin/jellyfin-ffprobe8"}
 
diff --git a/www/immich/files/pkg-message.in b/www/immich/files/pkg-message.in
index 82c5bc9ca738..32387cc85e6e 100644
--- a/www/immich/files/pkg-message.in
+++ b/www/immich/files/pkg-message.in
@@ -35,9 +35,9 @@ Configuration:
       sysrc immich_server_enable=YES
       service immich_server start
  5. Optional: install www/immich-ml for smart search, duplicate
-    detection and facial recognition, then set the machine-learning
-    URL in the admin web UI (Administration > Settings >
-    Machine Learning) to http://127.0.0.1:3003
+    detection, facial recognition and text search in images.  The rc
+    script points the server at it on 127.0.0.1:3003; a service on
+    another host goes into immich_server_ml_url.
 
 Running it:
  * The server listens on all addresses, and its worker opens a second