Allow larger files to be uploaded

Note that other upload APIs like avatar are still limited to 1m by
the nginx config
This commit is contained in:
Girish Ramakrishnan
2017-08-20 19:00:00 -07:00
parent 7cb451c157
commit 6a0ef7a1c1
2 changed files with 6 additions and 4 deletions

View File

@@ -80,9 +80,6 @@ server {
# No buffering to temp files, it fails for large downloads
proxy_max_temp_file_size 0;
# Disable check to allow unlimited body sizes
client_max_body_size 0;
<% if (robotsTxtQuoted) { %>
location = /robots.txt {
return 200 <%- robotsTxtQuoted %>;
@@ -107,6 +104,11 @@ server {
proxy_read_timeout 30m;
}
location ~ ^/api/v1/apps/.*/upload$ {
proxy_pass http://127.0.0.1:3000;
client_max_body_size 0;
}
# graphite paths (uncomment block below and visit /graphite/index.html)
# location ~ ^/(graphite|content|metrics|dashboard|render|browser|composer)/ {
# proxy_pass http://127.0.0.1:8000;