Enable gzip compression in Nginx
How to enable and test gzip in Nginx. Official document: ngx_http_gzip_module Enable gzip I use Raspberry Pi System Monitor to test gzip module. Modify /etc/nginx/sites-available/default to enable gzip. In this case I only change the RpiMonitor website in the server, you can apply it to global by /etc/nginx/nginx.conf location /rpi { proxy_pass http://127.0.0.1:9999/RpiMonitor; } Change to location /rpi { proxy_pass http://127.0.0.1:9999/RpiMonitor; gzip on; gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript; gzip_proxied any; } Then reload nginx....