Traefik doesn't allow large size upload
Following these messages
https://discord.com/channels/979116623879368755/994044917355663450/1131786157361999972
https://discord.com/channels/979116623879368755/994044917355663450/1131862468034035764
I was not able to upload large files via CLI Bulk upload. The file I have isolated is a
MOV
file 2.5Gb in size. When I tried with immich-proxy
port as a temporary solution, it works, but not when I use Traefik. Since this is a reverse proxy problem, my phone likely suffers from the same issue.35 Replies
I've tried this but it did not help.
https://discord.com/channels/979116623879368755/1131862468034035764/1131866743384571994
Does traefik cache requests on disk? What is the free disk space of the traefik system?
Do you happen to use Cloudflare?
Traefik does not cache as default to disk. Only on Enterprise version or by plugins
I'm not familiar with traefik, but I had that issue with nginx.
This is my Immich Traefik settings:
And Immich-web:
`
I also run:
As plugins in Traefik, can you send your traefikk.yml and relevant config from fileconfig.yml @alittlebee ?
Thanks @Allram , I will test out the configuration and let you know about the result. That looks promising ❤️
@Allram I have a very simple traefik configuration. All configurations are done through this docker-compose file and no
traefik.yml
And this is my immich config, which works for smaller files.
Would you mind to share your
traefik.yml
config and how to load it from the docker container?I updated to this and Traefik throws errors


Try to remove middleware 'middlewares-secure-headers@file'
That is in my fileconfig.yml so it might be that yours are named different or not exist
I can share my files later when I'm in front of my PC 👍
Thank you. Removining
middlewares-secure-headers@file
returns my config to the original state, so it works. Looking forward to see your config 🙂Thanks, @Allram . Wow you have a hardcore configuration.
I'll try it out and keep you posted 🙂
Trying to keep it as secure as I can 😅
Did you follow this guide to setup?
https://docs.ibracorp.io/traefik/master/docker-compose/config-files-explained
This is the only resource I found mentioning fileConfig.yml
Btw, it is mentioned that
traefik.yml
is a "static config" and fileConfig
is "dynamic config". What do they mean?
Ah, I think I start to understand it now.Yes, followed that and a few other I found around the internet.
The static traefik.yml, Traefik will only incorporate the changes when it's restarted.
The dynamic fileconfig.yml will be read/updated often by Traefik, so changes can be adapted "on-the-fly" without restarting Traefik.
Thanks a lot for the explaination. Now I understand. ❤️
At this point, I am pretty sure I configured everything correctly but none helped. Immich now runs as normal. I loaded a new middleware
middlewares-immich-secure-headers
with the same content as you.
The error is still there 😦This is my traefik for the
immich_server



This is weird 😅 and you don't have Cloudflare or anything in front? Might it be the timeouts that need to be increased?
What is the actual error message?
It is the same as my original error, this one.
https://discord.com/channels/979116623879368755/1131876653442813992/1131876653442813992
I only use CloudFlare to issue certificate/DNS challenge. Not sure if it needs to be configured with something.
No, was just thinking if you use Cloudflare's proxy service, since that will limit to 100MB transfers 🙂
Ah, no. I ran
cloudflared
before and ditched it as soon as I discovered the limitation.I don't see an error. You just say "unable to upload large video". Did you get an actual error somewhere?
I linked the error in the message. But here you go.

Sorry I clicked through a bit but could not locate it. Can you send a screenshot of the error further down? The "response" section might have some more details.
Of course, here you go
There is a reference to cloudflare here. Hmm
I have the same problem now. Any larger videos do not get uploaded via cloudfared due to size limitation so perhaps some type of chunking can be enabled OR "trusted / local" wifi AP can be added to the list in which the immich instance is routed to a local ip vs external. Similar to how home assistant does the implementation
When i say now - this is because i lost an ability to open ports & have to use cloudfared tunnels to expose anything out of my local network due to internet provider change.
This gets asked quite a bit. I don't really care either way, but you'd have to convince a mobile dev to add it. cc: @Alex
I don't use Cloudflared. I use Traefik and Cloudflare is only used to verify DNS
Then how are you getting a 500 error from cloudflare?