From 9e85410340ddcabef4a6f20d3e9c3cb8474870c4 Mon Sep 17 00:00:00 2001 From: "Gan, Jimmy" Date: Sun, 5 Apr 2026 20:46:04 +0800 Subject: [PATCH] fix: stabilize Immich mobile sync with timeout and ML fixes - Add 10m read/write timeouts to Caddy reverse proxy for photos domains - Fix ML service URL to use correct docker network hostname - Resolves 'Request aborted' errors during mobile photo uploads --- immich/docker-compose.yml | 3 +-- tmp_remote/Caddyfile_vps | 8 ++++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/immich/docker-compose.yml b/immich/docker-compose.yml index e0f352a..d499f42 100644 --- a/immich/docker-compose.yml +++ b/immich/docker-compose.yml @@ -18,8 +18,7 @@ services: DB_PASSWORD: ${DB_PASSWORD} DB_DATABASE_NAME: ${DB_DATABASE_NAME} REDIS_HOSTNAME: immich-redis - IMMICH_MACHINE_LEARNING_ENABLED: "false" - IMMICH_MACHINE_LEARNING_URL: "" + IMMICH_MACHINE_LEARNING_URL: http://immich-machine-learning:3003 healthcheck: test: ["CMD-SHELL", "curl -f http://localhost:2283/api/server/ping || exit 1"] interval: 30s diff --git a/tmp_remote/Caddyfile_vps b/tmp_remote/Caddyfile_vps index 9fe96d0..6fbb557 100644 --- a/tmp_remote/Caddyfile_vps +++ b/tmp_remote/Caddyfile_vps @@ -48,6 +48,10 @@ photos.jimmygan.com { reverse_proxy 100.78.131.124:2283 { header_up X-Forwarded-Proto https header_up X-Forwarded-Host {host} + transport http { + read_timeout 10m + write_timeout 10m + } } } @@ -56,5 +60,9 @@ photos-app.jimmygan.com { reverse_proxy 100.78.131.124:2283 { header_up X-Forwarded-Proto https header_up X-Forwarded-Host {host} + transport http { + read_timeout 10m + write_timeout 10m + } } }