Commit c5c28292 authored by Mikaël Salson's avatar Mikaël Salson

Server: Allow huge file uploads

However the value must also be set in /etc/nginx/nginx.conf
parent 5b3bf354
......@@ -105,9 +105,11 @@ echo "server {
include /etc/nginx/conf.d/web2py/gzip.conf;
### end gzip section
client_max_body_size 2048m;
client_max_body_size 20G;
}
client_max_body_size 20G;
location /cgi/ {
gzip off;
root $CWD/../browser/;
......@@ -142,8 +144,7 @@ server {
# include /etc/nginx/conf.d/web2py/gzip.conf;
### end gzip section
### remove the comments if you want to enable uploads (max 10 MB)
client_max_body_size 2048m;
client_max_body_size 20G;
###
}
## if you serve static files through https, copy here the section
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment