Nginx reverse proxy gzip for json payload
Francis Daly
francis at daoine.org
Fri May 27 10:25:49 UTC 2022
On Fri, May 27, 2022 at 05:31:10AM -0400, blason wrote:
Hi there,
note that you have the request from the client to nginx, the request
from nginx to the upstream, the response from upstream to nginx, and
the response from nginx to the client.
"gzip" and friends deal with the response from nginx to the client.
http://nginx.org/r/gzip, http://nginx.org/r/gzip_types (which redirect
to different parts of the same page).
(I'm pretty sure that) nginx does not have an option to compress the
request from nginx to upstream.
If that is the thing that you want to do, you will need another
plan. (Possibly involving lua or one of the other embeddable languages.)
Cheers,
f
--
Francis Daly francis at daoine.org
More information about the nginx
mailing list