Browse Source

* Añadir client_max_body_size a Nginx

Guzmán Castanedo Villalba 2 years ago
parent
commit
882ec76dca
2 changed files with 3 additions and 0 deletions
  1. 1 0
      etc/nginx/nginx.conf
  2. 2 0
      install

+ 1 - 0
etc/nginx/nginx.conf

@@ -15,6 +15,7 @@ http {
 	##
 
 	sendfile on;
+	client_max_body_size 100M;
 	tcp_nopush on;
 	tcp_nodelay on;
 	keepalive_timeout 65;

+ 2 - 0
install

@@ -1165,6 +1165,8 @@ configurarNginx() {
 	esac
 	sed -i '/user /c\user '$webServerUser';' /etc/$webServerName/nginx.conf
 	comprobarError $? 107
+	sed -i '/client_max_body_size /c\client_max_body_size '"$maxUpload"';' /etc/$webServerName/nginx.conf
+	comprobarError $? 107
 	unset nginxConfFile
 }