upload max filesize bumped to 5M
This commit is contained in:
parent
769fea451c
commit
ebd204dca0
|
|
@ -2,8 +2,8 @@ server {
|
||||||
listen 80;
|
listen 80;
|
||||||
|
|
||||||
client_body_buffer_size 100K;
|
client_body_buffer_size 100K;
|
||||||
client_header_buffer_size 1k;
|
client_header_buffer_size 1K;
|
||||||
client_max_body_size 100k;
|
client_max_body_size 5M;
|
||||||
|
|
||||||
client_body_timeout 10;
|
client_body_timeout 10;
|
||||||
client_header_timeout 10;
|
client_header_timeout 10;
|
||||||
|
|
@ -24,6 +24,7 @@ server {
|
||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||||
fastcgi_param SERVER_NAME $http_host;
|
fastcgi_param SERVER_NAME $http_host;
|
||||||
|
fastcgi_param PHP_VALUE "upload_max_filesize=5M \n post_max_size=5M";
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(jpe?g|woff|woff2|ttf|gif|png|bmp|ico|css|js|ejs|json|pdf|zip|htm|html|docx?|xlsx?|pptx?|txt|wav|swf|svg|avi|mp\d)$ {
|
location ~* \.(jpe?g|woff|woff2|ttf|gif|png|bmp|ico|css|js|ejs|json|pdf|zip|htm|html|docx?|xlsx?|pptx?|txt|wav|swf|svg|avi|mp\d)$ {
|
||||||
|
|
@ -38,6 +39,15 @@ server {
|
||||||
server {
|
server {
|
||||||
listen 443;
|
listen 443;
|
||||||
|
|
||||||
|
client_body_buffer_size 100K;
|
||||||
|
client_header_buffer_size 1K;
|
||||||
|
client_max_body_size 5M;
|
||||||
|
|
||||||
|
client_body_timeout 10;
|
||||||
|
client_header_timeout 10;
|
||||||
|
keepalive_timeout 5 5;
|
||||||
|
send_timeout 10;
|
||||||
|
|
||||||
ssl on;
|
ssl on;
|
||||||
ssl_certificate /etc/ssl/certs/certificate.crt;
|
ssl_certificate /etc/ssl/certs/certificate.crt;
|
||||||
ssl_certificate_key /etc/ssl/certs/certificate.key;
|
ssl_certificate_key /etc/ssl/certs/certificate.key;
|
||||||
|
|
@ -60,6 +70,7 @@ server {
|
||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||||
fastcgi_param SERVER_NAME $http_host;
|
fastcgi_param SERVER_NAME $http_host;
|
||||||
|
fastcgi_param PHP_VALUE "upload_max_filesize=5M \n post_max_size=5M";
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.(jpe?g|woff|woff2|ttf|gif|png|bmp|ico|css|js|json|pdf|zip|htm|html|docx?|xlsx?|pptx?|txt|wav|swf|svg|avi|mp\d)$ {
|
location ~* \.(jpe?g|woff|woff2|ttf|gif|png|bmp|ico|css|js|json|pdf|zip|htm|html|docx?|xlsx?|pptx?|txt|wav|swf|svg|avi|mp\d)$ {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue