Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uploading large files #10

Closed
linus-ha opened this issue Sep 24, 2021 · 3 comments
Closed

Uploading large files #10

linus-ha opened this issue Sep 24, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@linus-ha
Copy link

I have some .deb files larger than 100 MB. When uploading them, I get back an HTTP error of 413 - Request Entity Too Large

user@host  ~/> ls -la
[...]
-rw-r--r-- 1 user user 125155444 21. Mai 2020  somefile.deb

user@host ~/> curl -X POST --user xy:pass -F file=@somefile.deb https://example.com/api/files/destdir
<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</center>
</body>
</html>

The limit is set in nginx.conf of this container (path inside container: /etc/nginx/conf.d/default.conf):

client_max_body_size 100M;

It would be great if that value would be configurable via an environment variable when creating the container.

@urpylka urpylka added the enhancement New feature or request label Sep 26, 2021
@urpylka urpylka self-assigned this Sep 26, 2021
@urpylka
Copy link
Owner

urpylka commented Sep 26, 2021

Hello @linus-ha! It's a good idea.

I added this feature to the dev branch. To use it:

  • pull urpylka/aptly:dev image
  • define docker env param NGINX_CLIENT_MAX_BODY_SIZE='100M'

Please check it and let me know how it works.

@linus-ha
Copy link
Author

Thank you for the fast and extremely helpful response!
Yes, that works quite well. When not setting the variable, the limit defaults to 100M. My issue is solved and this works perfectly. Thank you very much! I think you can merge that or release it with the next version.

@urpylka
Copy link
Owner

urpylka commented Oct 3, 2021

Use version v1.5 https://github.com/urpylka/docker-aptly/releases/tag/v1.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants