mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-21 17:20:36 -05:00
[GH-ISSUE #1106] Bug: Expand maxmimum upload size #1767
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MorganKryze on GitHub (Jul 21, 2025).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/1106
TLDR
Trying to upload files through a service, everything above
10Mbreturns me403 Forbidden.Situation & steps
VPS setup:
From my laptop, when trying to upload files under (around)
10Mb, everything works correctly.Above (around)
10Mb, the file(s) try to upload in a cycle of one to three times, then crashes. The file(s) is not uploaded, or some are if multiple files.Leads
Filebrowser is a service I am used to, and I knwo for sure that it can handle more than 10Mb transfers.
My assumption is that Crowdsec is responsible for this issue. The size of the packet outranges a maximum set somewhere, then with multiple tries, flag my ip and ban it for 4h (default) with a
403 Forbidden error.This is an extract of a repetitive log message i get from the crowdsec instance whenever I try to upload a large file.
I guess that there should be a setting somewhere to change this maximum value, but cannot find it up until now.
I may be clumsy, if you need any more information about the config or the logs... feel free to ask!
Thanks for the help :) Fantastic tool btw
@oschwartz10612 commented on GitHub (Jul 22, 2025):
Hi! Yes this is a crowdsec issue. I think it has a 10MB limit on appsec. Check out the following:
https://docs.crowdsec.net/docs/next/configuration/crowdsec_configuration/
https://app.crowdsec.net/hub/author/maxlerebourg/remediation-components/crowdsec-bouncer-traefik-plugin
I think you would want to play with increasing the CrowdsecAppsecBodyLimit value. https://github.com/fosrl/pangolin/pull/515/files
@MorganKryze commented on GitHub (Jul 22, 2025):
Hi!
Thank you for the quick response
crowdsecAppsecBodyLimit: 10485760value, ranging up to 100GB, restarting Traefik, crowdsec or the entire stack or even the VPS did not change a thing.On thing from https://app.crowdsec.net/hub/author/maxlerebourg/remediation-components/crowdsec-bouncer-traefik-plugin that I might understand is that
CrowdsecAppsecBodyLimitis indeed limiting the traffic going to crowdsec, so putting it to a high/very high value would do the job, but it's not the case for me.I may have missed something on my end
@MorganKryze commented on GitHub (Jul 28, 2025):
Does anyone has encountered this issue and has found leads or solution to solve this subject?
Thanks,
@oschwartz10612 commented on GitHub (Jul 28, 2025):
Hum it seems like maybe its not pulling in the value correctly or something. I also note we did up the value in the default config as well. Could you give a post on discord? I think some people there have some more Crowdsec experience that could help.
@MorganKryze commented on GitHub (Jul 29, 2025):
I was writing my post on discord when I deepen the research and found this exact comment: https://github.com/fosrl/pangolin/issues/436#issuecomment-2797924344
These steps did solve my issue. I was fully able to upload 154 Mo, 554 Mo files.
crowdsec-bouncer-traefik-pluginto 1.4.2 / 1.4.4CrowdsecAppsecBodyLimitvalue to the default10485760If anyone has more information on why setting it back to its default value may change anything, I'm interested!