Page MenuHomeSoftware Heritage

winkies (Vincent)
User

Projects

User does not belong to any projects.

User Details

User Since
Jan 20 2021, 6:00 PM (204 w, 2 d)

Recent Activity

Jan 29 2021

winkies added a comment to T2277: varnish: limit maximum size of incoming POST requests for Web API.

After investigation, varnish has parameter to limit the size of HTTP request : http_req_size.
But it doesn't specify on which HTTP verb this applies. In theory, the API should accept body only on POST/PUT/PATCH request so it should do the job.

Jan 29 2021, 7:53 PM · System administration

Jan 22 2021

winkies added a comment to T2277: varnish: limit maximum size of incoming POST requests for Web API.

My bad, the Web API is running behind HTTP reverse proxy (varnish). I'll propose a more appropriate solution.

Jan 22 2021, 4:26 PM · System administration

Jan 20 2021

winkies added a comment to T2277: varnish: limit maximum size of incoming POST requests for Web API.

According the django documentation, the DATA_UPLOAD_MAX_MEMORY_SIZE variable should do the job.
By default, the variable is set to 2.5 MB. From my experience, 1 MB is sufficient (for example, it's also the limit for some JS library).

Jan 20 2021, 7:53 PM · System administration