-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
109 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
nginx-core/etc/nginx/templates/http.d/61-gzip.conf.template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
gzip $NGINX_GZIP; | ||
gzip_comp_level $NGINX_GZIP_COMP_LEVEL; | ||
gzip_vary $NGINX_GZIP_VARY; | ||
gzip_min_length $NGINX_GZIP_MIN_LENGTH; | ||
gzip_disable "MSIE [1-6].(?!.*SV1)"; | ||
gzip_buffers 32 4k; | ||
gzip_proxied any; | ||
gzip_types | ||
application/ecmascript | ||
application/javascript | ||
application/json | ||
application/postscript | ||
application/font-woff | ||
application/x-javascript | ||
application/vnd.ms-fontobject | ||
application/x-font-opentype | ||
application/x-font-truetype | ||
application/x-font-ttf | ||
application/xml | ||
image/gif | ||
image/svg+xml | ||
image/x-icon | ||
text/x-component | ||
text/x-js | ||
text/css | ||
text/csv | ||
text/javascript | ||
text/plain | ||
text/xml | ||
text/xsd | ||
text/xsl | ||
font/eot | ||
font/opentype | ||
font/otf | ||
font/woff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
brotli on; | ||
brotli_static on; | ||
brotli_comp_level 6; | ||
brotli_min_length 1000; | ||
brotli_buffers 32 8k; | ||
brotli_types | ||
application/ecmascript | ||
application/javascript | ||
application/json | ||
application/pdf | ||
application/postscript | ||
application/font-woff | ||
application/font-woff2 | ||
application/x-javascript | ||
application/vnd.ms-fontobject | ||
application/x-font-opentype | ||
application/x-font-truetype | ||
application/x-font-ttf | ||
application/xml | ||
image/gif | ||
image/jpeg | ||
image/png | ||
image/svg+xml | ||
image/tiff | ||
image/vnd.microsoft.icon | ||
image/x-icon | ||
image/webp | ||
text/x-component | ||
text/x-js | ||
text/css | ||
text/csv | ||
text/javascript | ||
text/plain | ||
text/xml | ||
text/xsd | ||
text/xsl | ||
font/eot | ||
font/opentype | ||
font/otf | ||
font/woff | ||
font/woff2 | ||
video/3gpp | ||
video/mp4 | ||
video/mpeg | ||
video/ogg | ||
video/quicktime | ||
video/webm | ||
video/x-flv | ||
video/x-mng | ||
video/x-ms-asf | ||
video/x-ms-wmv | ||
video/x-msvideo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters