loic-sharma / BaGet

A lightweight NuGet and symbol server
https://loic-sharma.github.io/BaGet/
MIT License
2.57k stars 639 forks source link

413 (Request Entity Too Large) #767

Closed git102347501 closed 1 year ago

git102347501 commented 1 year ago

I packed a package with a size of 1253kb 1680242445774 An error was encountered while uploading 1680242520966 When uploading relatively small packages, there is no ch problem with this issue

My Env: Centos7 + Nginx

Peymanpn commented 1 year ago

You need to increase your nginx client body size give it a bigger number than the default value, for example, 10 megabytes.

put it in server section:

client_max_body_size  10M;
git102347501 commented 1 year ago

You need to increase your nginx client body size give it a bigger number than the default value, for example, 10 megabytes.

put it in server section:

client_max_body_size  10M;

Thank you. After applying your settings, the problem has been resolved