Por padrão, o Nginx não é fornecido com o módulo que contém o echo_read_request_body
. Você precisa compilá-lo sozinho com o módulo.
In our use case, to log a request body, what we need is to use the
echo_read_request_body
command and the$request_body
variable (contains the request body of the Echo module). However, this module is not distributed with NGINX by default, and to be able to use it we have to build NGINX from its source code by building it with the source code of the Echo module included."
de link