homelab 7 Nisan 2026

immich big file upload problem

Troubleshooting Immich: Large File Uploads and Manual SSH Imports

If you are running Immich behind Traefik (and potentially a Cloudflare Tunnel), you may encounter two common issues:

  1. 413 Request Entity Too Large: Uploads fail for large 4K videos.
  2. Invisible Files: Files copied via scp or rsync do not show up in the Immich timeline.

Problem 1: Upload Limits (Traefik & Cloudflare)

The Cause

  • Traefik: Default middleware settings may buffer or limit request body sizes.
  • Cloudflare: Free tier tunnels and proxies have a hard 100MB limit.

The Solution (Traefik Bypass)

To handle large files, bypass the proxy by exposing the Immich port directly for local network (LAN) use. Update your docker-compose.yml:

services:
  immich-server:
    # ... existing config ...
    ports:
      - "2283:2283" # Expose directly for LAN uploads
    labels:
      - "traefik.http.middlewares.immich-buffering.buffering.maxRequestBodyBytes=0"
      - "traefik.http.routers.immich.middlewares=immich-buffering"