Allow uploading larger presentations (#1977)

* Allow uploading larger presentations

This patch allows uploading presentations up to 30MB instead of the
default 1MB. This should prevent users from getting an 401 reply from
Nginx in most cases.

* Update greenlight.nginx

Co-authored-by: Ahmad Farhat <>
Co-authored-by: Ahmad Farhat <>
This commit is contained in:
Lars Kiesow 2020-08-04 21:41:03 +02:00 committed by GitHub
parent 620416f18a
commit 61b91881d7
No known key found for this signature in database
1 changed files with 12 additions and 1 deletions

View File

@ -25,9 +25,20 @@ location /b/cable {
send_timeout 6h;
# Allow larger body size for uploading presentations
location ~ /preupload_presentation$ {
client_max_body_size 30m;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_http_version 1.1;
# Only needed if using presentations and deployed at a relative root (ex "/b")
# If deploying at "/", delete the section below
location /rails/active_storage {
return 301 /b$request_uri;