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
This commit is contained in:
Gan, Jimmy
2026-04-05 20:46:04 +08:00
parent 6c7af5dff6
commit 9e85410340
2 changed files with 9 additions and 2 deletions
+1 -2
View File
@@ -18,8 +18,7 @@ services:
DB_PASSWORD: ${DB_PASSWORD} DB_PASSWORD: ${DB_PASSWORD}
DB_DATABASE_NAME: ${DB_DATABASE_NAME} DB_DATABASE_NAME: ${DB_DATABASE_NAME}
REDIS_HOSTNAME: immich-redis REDIS_HOSTNAME: immich-redis
IMMICH_MACHINE_LEARNING_ENABLED: "false" IMMICH_MACHINE_LEARNING_URL: http://immich-machine-learning:3003
IMMICH_MACHINE_LEARNING_URL: ""
healthcheck: healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:2283/api/server/ping || exit 1"] test: ["CMD-SHELL", "curl -f http://localhost:2283/api/server/ping || exit 1"]
interval: 30s interval: 30s
+8
View File
@@ -48,6 +48,10 @@ photos.jimmygan.com {
reverse_proxy 100.78.131.124:2283 { reverse_proxy 100.78.131.124:2283 {
header_up X-Forwarded-Proto https header_up X-Forwarded-Proto https
header_up X-Forwarded-Host {host} 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 { reverse_proxy 100.78.131.124:2283 {
header_up X-Forwarded-Proto https header_up X-Forwarded-Proto https
header_up X-Forwarded-Host {host} header_up X-Forwarded-Host {host}
transport http {
read_timeout 10m
write_timeout 10m
}
} }
} }