Skip to content

Instantly share code, notes, and snippets.

@Yinchie
Last active December 30, 2016 13:09
Show Gist options
  • Save Yinchie/0f213ebed65b93b0e1db40df25c4131c to your computer and use it in GitHub Desktop.
Save Yinchie/0f213ebed65b93b0e1db40df25c4131c to your computer and use it in GitHub Desktop.
My Ghost blog, general NGiNX pagespeed config.
pagespeed on;
pagespeed FileCachePath /var/cache/nginx/pagespeed;
pagespeed FileCacheSizeKb 102400;
pagespeed FileCacheCleanIntervalMs 3600000;
pagespeed FileCacheInodeLimit 500000;
pagespeed XHeaderValue "optimized";
pagespeed EnableCachePurge on;
pagespeed ForceCaching on;
pagespeed MessageBufferSize 100000;
pagespeed StatisticsPath /ngx_pagespeed_statistics;
pagespeed GlobalStatisticsPath /ngx_pagespeed_global_statistics;
pagespeed MessagesPath /ngx_pagespeed_message;
pagespeed ConsolePath /pagespeed_console;
pagespeed AdminPath /pagespeed_admin;
pagespeed GlobalAdminPath /pagespeed_global_admin;
pagespeed Domain https://www.itchy.nl;
pagespeed LoadFromFile "https://www.itchy.nl" "/var/www/ghost/content/themes/ycasper";
pagespeed LoadFromFile "https://www.itchy.nl/content/images" "/var/www/ghost/content/images";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment