[Pulp-list] Pulp 3 docker: Request Entity Too Large

Jan David jan.david at brusselsairport.be
Tue Aug 17 14:48:52 UTC 2021


Hi,

I’m running the docker version of Pulp 3 (3.13 to be specific).

The nginx configuration in the docker container does not allow large files (packages) to be uploaded. If an (rpm) package is too large, you’ll receive an error “Request Entity Too Large”.

I’ve worked around this by modifying the nginx config as so:

location /pulp/api/v3/ {
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto $scheme;
            proxy_set_header Host $http_host;
            # we don't want nginx trying to do something clever with
            # redirects, we set the Host: header above already.
            proxy_redirect off;
            proxy_pass http://pulp-api;
            client_max_body_size 500m;
        }

As can be seen, the client_max_body size was increased to 500m.

Is there an easier way to change this via a parameter? Otherwise, I would have to tweak the docker config manually each time I want to use a newer version of the container.

Thank you,

J. David

PS: The error is:

<html>
<head><title>413 Request Entity Too Large</title></head>
<body bgcolor="white">
<center><h1>413 Request Entity Too Large</h1></center>
<hr><center>nginx/1.14.1</center>
</body>
</html>



Jan David
unix engineer
Brussels Airport Company
Tel
Mobile
[Brussels Airport Company]<https://www.brusselsairport.be/en/passengers>
follow us on:
[https://media.brusselsairport.be/bruweb/default/0001/20/bac-signature-icon-grey-facebook.jpg] <https://www.facebook.com/brusselsairport>       [https://media.brusselsairport.be/bruweb/default/0001/20/bac-signature-icon-grey-twitter.jpg] <https://twitter.com/BrusselsAirport>     [https://media.brusselsairport.be/bruweb/default/0001/20/bac-signature-icon-grey-linkedin.jpg]  <https://www.linkedin.com/company/the-brussels-airport-company-tbac>    [https://media.brusselsairport.be/bruweb/default/0001/20/bac-signature-icon-grey-instagram.jpg]  <https://instagram.com/brusselsairport>        [https://media.brusselsairport.be/bruweb/default/0001/20/bac-signature-icon-grey-youtube.jpg]  <https://www.youtube.com/BrusselsairportBRU>
Company info<https://www.brusselsairport.be/nl/onze-luchthaven/over-brussels-airport/brussels-airport-company/the-company>

Be green, keep it on the screen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20210817/5e527725/attachment.htm>


More information about the Pulp-list mailing list