Skip to content

Instantly share code, notes, and snippets.

@MiguelTVMS
Created April 8, 2017 16:09
Show Gist options
  • Save MiguelTVMS/2c462fc125552036c0557d2290e8d571 to your computer and use it in GitHub Desktop.
Save MiguelTVMS/2c462fc125552036c0557d2290e8d571 to your computer and use it in GitHub Desktop.
Rodando NG_PageSpeed & Nginx utilizando Docker - Código 6
# Estas são as configurações que utilizamos no nginx.
ENV NGX_LOGLEVEL debug
ENV NGX_UPSTREAM_NAME www.google.com
ENV NGX_UPSTREAM_SERVER www.google.com:80
# Estas são as configurações que utilizaremos no PageS
ENV NPS_ENABLED on
ENV NPS_LOWERCASEHTMLNAMES on
ENV NPS_RESPECTVARY off
ENV NPS_DISABLEREWRITEONNOTRANSFORM on
ENV NPS_MODIFYCACHINGHEADERS on
ENV NPS_XHEADERVALUE "Powered By jmtvms/ngx_pagespeed"
ENV NPS_ENABLEFILTERS rewrite_javascript,move_css_to_head,rewrite_css,combine_css,combine_javascript,collapse_whitespace,dedup_inlined_images,elide_attributes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment