413 Undefined when uploading videos
Hello again!
I'm trying to upload videos to an album which I have on Immich. Problem is, it throws this error and only one video was able to upload successfully. I have sufficient storage for it to upload.

17 Replies
(Uploading videos individually doesn't work either.)
Are you using a reverse proxy other than just the one that comes with Immich?
I'm using cloudflared (zero trust tunnel)
I think cloudflare puts a limit on upload size
I'll ask Cloudflare about it. Unless you know of a solution :blobthumbsup:
You were right. They do have upload limits. I'll have to run it through an alternate proxy. Would nginx work?

Nginx should be fine, just make sure you get the config right https://immich.app/docs/administration/reverse-proxy
Reverse Proxy | Immich
When deploying Immich it is important to understand that a reverse proxy is required in front of the server and web container. The reverse proxy acts as an intermediary between the user and container, forwarding requests to the correct container based on the URL path.
Will do! Thanks for the help :)
By the way, is the
client_max_body_size
the maximum upload size? If so, can I change it to 0 or -1 to make it infinite?I think so yes
0, IIRC
Should I change the <snip>in the config?
Yes
Okay, I made a new nginx container with port 443 open, created a reverse-proxy.conf file in the sites-available directory, configured it and restarted the container.
I'm getting 521 Web server is down

(I also created the A record for it)
I can also access it locally
Or should I keep using Immich's proxy but forward the port from my router so that internally it is 2283 and externally it is 443?
I did this and now I'm getting 526 invalid SSL certificate, should be an easy fix, one sec.
Or maybe not.. How can I add an SSL cert to Immich?
The intent is to add another proxy in front or to replace it entirely, you probably shouldn't change anything about immich_proxy directly
Is this an error from cloudflare?
Yes. Means that cloudflare can't reach my server.
If it works locally, I guess make sure the port is forwarded etc?
I forwarded 2283 -> 443 (internal -> external), created an A record with my IP and proxied it through cloudflare.
If I forward the nginx reverse proxy which I made, I get that 521 webserver is down error
I'll be trying a different approach..
Okay, I installed nginx on my server (not in docker) and pasted the proxy configuration. Now I'm getting the invalid SSL cert.
Hmm.. I got a better idea. I'll just upload the bigger files locally and view them externally
Strange solution I know, not worth the hassle to set up everything over.
Issue solved ✅