Skip to content

Commit

Permalink
reverse-proxy-for-free-basics (#62): pagespeed strip_scripts works! T…
Browse files Browse the repository at this point in the history
…his is fantastic
  • Loading branch information
fititnt committed Jun 7, 2019
1 parent 1c4b691 commit d4a1b43
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/reverse-proxy-for-free-basics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ content to [Free Basics by Facebook](https://info.internet.org).
- See https://github.com/apache/incubator-pagespeed-ngx/tree/master/docker

# Apache/incubator-pagespeed-ngx
- <https://github.com/apache/incubator-pagespeed-ngx/tree/master/docker>
- <https://github.com/apache/incubator-pagespeed-ngx/tree/master/docker>
- <https://www.modpagespeed.com/doc/configuration#virtual-hosts>
23 changes: 23 additions & 0 deletions docker/reverse-proxy-for-free-basics/etc/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,28 @@ http {

#gzip on;

# Is possible to overide these defaults on your virtual hosts
# @see https://www.modpagespeed.com/doc/configuration#virtual-hosts
# pagespeed DisableFilters canonicalize_javascript_libraries, combine_javascript, defer_javascript, inline_javascript, insert_ga, lazyload_images, outline_javascript, rewrite_javascript;

pagespeed DisableFilters canonicalize_javascript_libraries;
pagespeed DisableFilters combine_javascript;
pagespeed DisableFilters defer_javascript;
pagespeed DisableFilters inline_javascript;
pagespeed DisableFilters insert_ga;
pagespeed DisableFilters lazyload_images;
pagespeed DisableFilters outline_javascript;
pagespeed DisableFilters rewrite_javascript;

# @todo research impact of OptimizeForBandwidth (fititnt, 2019-06-07 02:11 BRT)
# @see https://www.modpagespeed.com/doc/optimize-for-bandwidth
pagespeed RewriteLevel OptimizeForBandwidth;

# @todo see Admin page https://www.modpagespeed.com/doc/admin (fititnt, 2019-06-07 02:08 BRT)

# @todo research about this strip_scripts and make it work (fititnt, 2019-06-07 02:11 BRT)
# @see https://www.modpagespeed.com/doc/filter-strip-scripts
pagespeed EnableFilters strip_scripts;

include /etc/nginx/conf.d/*.conf;
}

0 comments on commit d4a1b43

Please sign in to comment.