Have you considered using the chunked upload api? It was developed to deal with this problem.
The pulp-cli uses it by default when uploading artifacts: pulp artifact upload --file test.rpm David On Tue, Aug 17, 2021 at 10:54 AM Jan David <jan.da...@brusselsairport.be> wrote: > 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* > [image: Brussels Airport Company] > <https://www.brusselsairport.be/en/passengers> > follow us on: > <https://www.facebook.com/brusselsairport> > <https://twitter.com/BrusselsAirport> > <https://www.linkedin.com/company/the-brussels-airport-company-tbac> > <https://instagram.com/brusselsairport> > <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* > > _______________________________________________ > Pulp-list mailing list > Pulp-list@redhat.com > https://listman.redhat.com/mailman/listinfo/pulp-list
_______________________________________________ Pulp-list mailing list Pulp-list@redhat.com https://listman.redhat.com/mailman/listinfo/pulp-list