Microstack -> 413 Entidade de solicitação muito grande

Microstack -> 413 Entidade de solicitação muito grande

Tenho um erro 413 quando quero criar uma imagem no microstack. Obrigado antecipadamente

Bom dia,

Houve um erro 413 quando eu queria criar uma imagem no microstack fraichement instalado.

Merci d'avance para seu assessor

Frederico


<html> <head><title>413 Request Entity Too Large</title></head> <body bgcolor="white"> <center><h1>413 Request Entity Too Large</h1></center> <hr><center>nginx/1.13.0</center> </body> </html>

Clique aqui para ver o erro

Responder1

Nodocumentaçãovocê descobrirá que o nginx limita o upload do tamanho do arquivo dos blocos do servidor.

Syntax: client_max_body_size size;
Default:    
client_max_body_size 1m;
Context:    http, server, location
Sets the maximum allowed size of the client request body, specified in the “Content-Length” request header field. If the size in a request exceeds the configured value, the 413 (Request Entity Too Large) error is returned to the client. Please be aware that browsers cannot correctly display this error. Setting size to 0 disables checking of client request body size.

Edite o arquivo sudo vim /etc/nginx/nginx.confou sudo vim /var/snap/microstack/common/etc/nginx/snap/nginx.conf:

Defina http client_max_body_size para um tamanho maior que o iso desejado.

http {
    ...
    client_max_body_size 2000M;
}

agora reinicie-o por sudo systemctl reload nginxousudo snap restart microstack

informação relacionada