Nginx is the perfect solution for a reverse proxy server, as well as Unix's way of "doing one thing and doing it well." Therefore, I would advise you to separate the content processing and the thumbnail process, instead of using third-party plugins, to do many things at the same time.
The best practice is to minimize and phase the obfuscate in the local system before deployment in production, this is easy to say and not difficult to do, see google way for compressing static assets. When you purchase ready-to-use assets, we can configure the nginx configuration.
Answers:
use minify & obfuscate before deploying it in production
you can find assets by regexp (directory name or file extension)
location ~ ^ / (assets | images | javascripts | stylesheets | swfs | system) / {gzip_static on; expax max; add_header Cache-Control public; add_header Last-Modified "; add_header ETag" "; break;}
use gzip on and gzip_static on to serve gzipped files, rather than compressing them every time you get a request.
use try_files to detect the service page or not
try_files $ uri / system / maintenance.html @mywebsite;
if (-f $ document_root / system / maintenance.html) {return 503; }
See the full nginx configuration for your case:
http { keepalive_timeout 70; gzip on; gzip_http_version 1.1; gzip_disable "msie6"; gzip_vary on; gzip_min_length 1100; gzip_buffers 64 8k; gzip_comp_level 3; gzip_proxied any; gzip_types text/plain text/css application/x-javascript text/xml application/xml; upstream mywebsite { server 192.168.0.1
source share