# Paste into the http {} block of /etc/nginx/nginx.conf, or drop into # /etc/nginx/conf.d/00-exo-http.conf. gzip on; gzip_vary on; gzip_comp_level 6; gzip_min_length 1024; gzip_proxied any; # .webp and .woff2 are deliberately absent — already compressed. gzip_types text/plain text/css application/javascript application/json image/svg+xml; # Serves the .gz files exo-deploy precompresses next to each asset. gzip_static on; server_tokens off; # Must stay off: nginx would otherwise cache the resolved path behind the # `current` symlink and keep serving the previous release after a deploy. open_file_cache off;