summaryrefslogtreecommitdiff
path: root/templates/pagespeed.tmpl
diff options
context:
space:
mode:
authorhorus_arch2015-07-27 22:24:09 +0200
committerhorus_arch2015-07-27 22:52:09 +0200
commitebfb0155ac6a4fba93ebb846878ca211e9384226 (patch)
tree0f9faa9e9afed9ce92dbd8e5cac796a833f86cd5 /templates/pagespeed.tmpl
downloadngxconf-master.tar.gz
Initial commit.HEADmaster
Diffstat (limited to 'templates/pagespeed.tmpl')
-rw-r--r--templates/pagespeed.tmpl13
1 files changed, 13 insertions, 0 deletions
diff --git a/templates/pagespeed.tmpl b/templates/pagespeed.tmpl
new file mode 100644
index 0000000..e1afb8d
--- /dev/null
+++ b/templates/pagespeed.tmpl
@@ -0,0 +1,13 @@
+pagespeed on;
+ pagespeed FileCachePath /var/cache/nginx/pagespeed;
+ location ~ "\.pagespeed\.([a-z]\.)?[a-z]{2}\.[^.]{10}\.[^.]+" {
+ add_header "" "";
+ }
+ location ~ "^/pagespeed_static/" { }
+ location ~ "^/ngx_pagespeed_beacon$" { }
+ pagespeed FileCacheSizeKb 102400;
+ pagespeed FileCacheCleanIntervalMs 3600000;
+ pagespeed FileCacheInodeLimit 500000;
+ pagespeed Statistics on;
+ pagespeed StatisticsLogging on;
+ pagespeed LogDir /var/log/nginx/pagespeed;