Skip to content

High performance self-hosted photo and video management solution.

fix(server): ml gunicorn listen on ipv4 and ipv6 by default (#7930)

Andrew Rowson37e5b91dc29d
diff --git a/machine-learning/start.sh b/machine-learning/start.sh
index 082bf205c4..d4a971f0ce 100755
--- a/machine-learning/start.sh
+++ b/machine-learning/start.sh
@@ -4,7 +4,7 @@ lib_path="/usr/lib/$(arch)-linux-gnu/libmimalloc.so.2"
export LD_PRELOAD="$lib_path"
export LD_BIND_NOW=1
-: "${MACHINE_LEARNING_HOST:=0.0.0.0}"
+: "${MACHINE_LEARNING_HOST:=[::]}"
: "${MACHINE_LEARNING_PORT:=3003}"
: "${MACHINE_LEARNING_WORKERS:=1}"
: "${MACHINE_LEARNING_WORKER_TIMEOUT:=120}"