When you reviewing your website with Google Pagespeed Insights, you could have the following error :
To fix this problem, a little modification of Nginx configuration is necessary :
/etc/nginx/nginx.conf file or in new file
/etc/nginx/conf.d/gzip.conf, add the following code :
and restart the Nginx service :
sudo service nginx restart
Now all your website assets have gzip compression.