Skip to content

Instantly share code, notes, and snippets.

@ilokano
Created July 31, 2016 09:52
Show Gist options
  • Save ilokano/cf737d03e5dc20c279a50cd4fc18b233 to your computer and use it in GitHub Desktop.
Save ilokano/cf737d03e5dc20c279a50cd4fc18b233 to your computer and use it in GitHub Desktop.
Default pagespeed conf file for NGINX server, to be placed in http block. Save in /etc/nginx/conf.d/
pagespeed on;
pagespeed FileCachePath "/var/ngx_pagespeed_cache";
pagespeed FileCacheSizeKb 102400;
pagespeed FileCacheCleanIntervalMs 3600000;
pagespeed FileCacheInodeLimit 500000;
pagespeed LRUCacheKbPerProcess 8192;
pagespeed LRUCacheByteLimit 16384;
pagespeed EnableCachePurge on;
pagespeed MemcachedServers "127.0.0.1:11211";
pagespeed PreserveUrlRelativity on;
pagespeed RewriteLevel OptimizeForBandwidth;
pagespeed LowercaseHtmlNames on;
#pagespeed RespectXForwardedProto on;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment