[bbb-greenlight: 4/16] Allow uploading larger presentations (#1977)




commit 61b91881d77a9bb4c679bd68db37d6f5d6e784c4
Author: Lars Kiesow <lkiesow uos de>
Date:   Tue Aug 4 21:41:03 2020 +0200

    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 <ahmad farhat blindsidenetworks com>
    Co-authored-by: Ahmad Farhat <ahmad af farhat gmail com>

 greenlight.nginx | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)
---
diff --git a/greenlight.nginx b/greenlight.nginx
index fb0b90f..d6b26e9 100644
--- a/greenlight.nginx
+++ b/greenlight.nginx
@@ -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_pass          http://127.0.0.1:5000;
+  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;
-}
\ No newline at end of file
+}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]