Discussion:
File Size Limit
Alfredo De Luca
2018-10-11 08:05:47 UTC
Permalink
Hi all.
Not sure how to do this but I need to limit a file size to be uploaded on
our haproxy (HA-Proxy version 1.5.18).

This is what I ve done so far... but not sure it's the right thing to do.


acl fileweightlimit hdr_val(content-lenght) gt 104857600
acl hdfsupload hdr(host) <site> and path_beg /hdfs/proxy

http-request deny if hdfsupload fileweightlimit


Cheers
--
*Alfredo*
Alfredo De Luca
2018-10-11 13:58:54 UTC
Permalink
Thanks heaps Aleksander. Appreciated. I saw the typo so no worries for
that. I ll put it on your conf and see how it goes.
Cheers
Post by Alfredo De Luca
Hi all.
Not sure how to do this but I need to limit a file size to be uploaded on
our haproxy (HA-Proxy version 1.5.18).
This is what I ve done so far... but not sure it's the right thing to do.
acl fileweightlimit hdr_val(content-lenght) gt 104857600
acl hdfsupload hdr(host) <site> and path_beg /hdfs/proxy
http-request deny if hdfsupload fileweightlimit
Cheers
--
*Alfredo*
--
*Alfredo*
Loading...