Can nginx do transparent compression of websocket connections #2161
-
I have nginx acting as reverse-proxy for an ASP.net I'd like nginx to do gzip compression (ie, permessage-deflate / rfc7692) for my Websocket connections, but I can't find any config options for that. Can nginx do that? Are there any plugins to make it work? If no, is there something else I can use? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
just edit your nginx config. It is the same for static sites, proxies or websockets
if this does not work, try compressing the messages befor sending them through the socket. |
Beta Was this translation helpful? Give feedback.
just edit your nginx config. It is the same for static sites, proxies or websockets
if this does not work, try compressing the messages befor sending them through the socket.
You can read more about it here: https://docs.nginx.com/nginx/admin-guide/web-server/compression/