Skip to content

Commit

Permalink
raise max upload size
Browse files Browse the repository at this point in the history
nginx defaults to 1mb client_max_body_size which is very limiting for
the large POSTs that PAUSE requires.

Raise to 250mb, which is a little larger than the largest files.

Note: an upload of a 200mb file failed, but in Plack/mojo, not nginx
as before. An upload of 25mb (bigger than the average perl5 release)
was fine.
  • Loading branch information
rspier authored and rjbs committed Apr 28, 2024
1 parent de917d6 commit 026e010
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bootstrap/selfconfig-root
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,8 @@ upstream pause {
server {
listen 80 default_server;
client_max_body_size 250m;
location / {
proxy_pass http://pause;
proxy_set_header X-Forwarded-Host \$host;
Expand Down

0 comments on commit 026e010

Please sign in to comment.