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.
No description
17 Replies
Deleted User
Deleted UserOP2y ago
(Uploading videos individually doesn't work either.)
bo0tzz
bo0tzz2y ago
Are you using a reverse proxy other than just the one that comes with Immich?
Deleted User
Deleted UserOP2y ago
I'm using cloudflared (zero trust tunnel)
bo0tzz
bo0tzz2y ago
I think cloudflare puts a limit on upload size
Deleted User
Deleted UserOP2y ago
I'll ask Cloudflare about it. Unless you know of a solution :blobthumbsup:
Deleted User
Deleted UserOP2y ago
You were right. They do have upload limits. I'll have to run it through an alternate proxy. Would nginx work?
No description
bo0tzz
bo0tzz2y ago
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.
Deleted User
Deleted UserOP2y ago
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?
bo0tzz
bo0tzz2y ago
I think so yes 0, IIRC
Deleted User
Deleted UserOP2y ago
Should I change the <snip>in the config?
bo0tzz
bo0tzz2y ago
Yes
Deleted User
Deleted UserOP2y ago
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
No description
Deleted User
Deleted UserOP2y ago
(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?
bo0tzz
bo0tzz2y ago
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?
Deleted User
Deleted UserOP2y ago
Yes. Means that cloudflare can't reach my server.
bo0tzz
bo0tzz2y ago
If it works locally, I guess make sure the port is forwarded etc?
Deleted User
Deleted UserOP2y ago
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 ✅

Did you find this page helpful?