Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
[nanobox] Allow Full-size Uploads (mastodon#4123)
Browse files Browse the repository at this point in the history
The Nginx configurations used by Nanobox previously neglected to increase the default upload size limit. This PR bumps that value up to the current Mastodon limit of 8MiB.
  • Loading branch information
danhunsaker authored and Gargron committed Jul 9, 2017
1 parent 007ab33 commit f68fa93
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
6 changes: 4 additions & 2 deletions nanobox/nginx-local.conf
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ http {
}

map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
default upgrade;
'' close;
}

# Configuration for Nginx
Expand All @@ -38,6 +38,8 @@ http {

root /app/public;

client_max_body_size 8M;

location / {
try_files $uri @rails;
}
Expand Down
4 changes: 2 additions & 2 deletions nanobox/nginx-stream.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ http {
}

map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
default upgrade;
'' close;
}

# Configuration for Nginx
Expand Down
6 changes: 4 additions & 2 deletions nanobox/nginx-web.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ http {
}

map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
default upgrade;
'' close;
}

# Configuration for Nginx
Expand All @@ -36,6 +36,8 @@ http {

root /app/public;

client_max_body_size 8M;

location / {
try_files $uri @rails;
}
Expand Down

0 comments on commit f68fa93

Please sign in to comment.