Explorar el Código

* Añadir client_max_body_size a Nginx

Guzmán Castanedo Villalba hace 5 años
padre
commit
882ec76dca
Se han modificado 2 ficheros con 3 adiciones y 0 borrados
  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
 }