Commit 3a8e6e27 authored by hadret's avatar hadret Committed by hadret

feat: provide pagespeed module.

parent e9ddb40f
......@@ -461,3 +461,13 @@ Depends: ${misc:Depends}, ${shlibs:Depends}
Description: dynamic upstreams via consul or etcd for Nginx
Sync upstreams from consul or etcd, dynamically modify backend servers
attributes like weight, max_fails etc. without the need to reload nginx.
Package: libnginx-mod-pagespeed
Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends}
Description: modpagespeed support for Nginx
The nginx PageSpeed improves web page latency by changing the resources on
that web page to implement web performance best practices.
.
The PageSpeed Modules, mod_pagespeed and ngx_pagespeed, are open-source
webserver modules that optimize your site automatically.
#!/usr/bin/perl -w
use File::Basename;
# Guess module name
$module = basename($0, '.nginx');
$module =~ s/^libnginx-mod-//;
$modulepath = $module;
$modulepath =~ s/-/_/g;
print "mod debian/build-extras/objs/ngx_${modulepath}.so\n";
print "mod debian/libnginx-mod.conf/mod-${module}.conf\n";
load_module modules/ngx_pagespeed.so;
......@@ -115,6 +115,7 @@ full_configure_flags := \
--with-mail=dynamic \
--with-mail_ssl_module \
--add-module=$(MODULESDIR)/http-upstream-check \
--add-dynamic-module=/vagrant/src/pagespeed \
--add-dynamic-module=$(MODULESDIR)/http-upsync \
--add-dynamic-module=$(MODULESDIR)/http-auth-ldap \
--add-dynamic-module=$(MODULESDIR)/http-auth-pam \
......@@ -144,6 +145,7 @@ extras_configure_flags := \
--with-stream_ssl_module \
--with-stream_ssl_preread_module \
--add-module=$(MODULESDIR)/http-upstream-check \
--add-dynamic-module=/vagrant/src/pagespeed \
--add-dynamic-module=$(MODULESDIR)/http-upsync \
--add-dynamic-module=$(MODULESDIR)/http-headers-more-filter \
--add-dynamic-module=$(MODULESDIR)/http-auth-ldap \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment