diff options
author | Daniel Hunsaker <danhunsaker@gmail.com> | 2017-07-08 18:52:36 -0600 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-07-09 02:52:36 +0200 |
commit | f68fa930ea448f5e94057160cfdcc78fec4aba11 (patch) | |
tree | 6af6fca7e891967f19bb0e1cf80e493c37bb99ab /nanobox/nginx-web.conf.erb | |
parent | 007ab330e6ffb1e07995d4e306473d457043e2eb (diff) |
[nanobox] Allow Full-size Uploads (#4123)
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.
Diffstat (limited to 'nanobox/nginx-web.conf.erb')
-rw-r--r-- | nanobox/nginx-web.conf.erb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/nanobox/nginx-web.conf.erb b/nanobox/nginx-web.conf.erb index 55245bf28..24cd17cff 100644 --- a/nanobox/nginx-web.conf.erb +++ b/nanobox/nginx-web.conf.erb @@ -22,8 +22,8 @@ http { } map $http_upgrade $connection_upgrade { - default upgrade; - '' close; + default upgrade; + '' close; } # Configuration for Nginx @@ -36,6 +36,8 @@ http { root /app/public; + client_max_body_size 8M; + location / { try_files $uri @rails; } |