Enable gzip compression on Nginx

Nginx configuration:

server {
      listen      80;
      server_name your.server.name;
      #...
      
      gzip on;
      gzip_comp_level 3;
      gzip_min_length 1000;
      gzip_proxied expired no-cache no-store private auth;
      gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;

      #rest of your nginx configuration
}