From 6d03a101bef541b078987cba2c12af2664174f33 Mon Sep 17 00:00:00 2001 From: Manuel de Brito Fontes Date: Fri, 1 Jul 2016 21:15:54 -0400 Subject: [PATCH] Add mime aplication/x-javascript to the gzip list and show the defaults in configuration.md --- controllers/nginx/Changelog.md | 3 ++- controllers/nginx/configuration.md | 2 +- controllers/nginx/nginx/config/config.go | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/controllers/nginx/Changelog.md b/controllers/nginx/Changelog.md index 8bc812153..ef6b543e6 100644 --- a/controllers/nginx/Changelog.md +++ b/controllers/nginx/Changelog.md @@ -14,7 +14,8 @@ Changelog - [X] [#1238](https://github.com/kubernetes/contrib/pull/1238) Add support for dynamic TLS records and spdy - [X] [#1239](https://github.com/kubernetes/contrib/pull/1239) Add support for conditional log of urls - [X] [#1253](https://github.com/kubernetes/contrib/pull/1253) Use delayed queue - +- [X] [#1296](https://github.com/kubernetes/contrib/pull/1296) Fix formatting +- [X] [#1299](https://github.com/kubernetes/contrib/pull/1299) Fix formatting ### 0.7 diff --git a/controllers/nginx/configuration.md b/controllers/nginx/configuration.md index b95445689..bdff245dd 100644 --- a/controllers/nginx/configuration.md +++ b/controllers/nginx/configuration.md @@ -268,7 +268,7 @@ Default is true **use-gzip:** Enables or disables the use of the nginx module that compresses responses using the ["gzip" module](http://nginx.org/en/docs/http/ngx_http_gzip_module.html) - +The default mime type list to compress is: `application/atom+xml application/javascript aplication/x-javascript application/json application/rss+xml application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/svg+xml image/x-icon text/css text/plain text/x-component` **use-http2:** Enables or disables the [HTTP/2](http://nginx.org/en/docs/http/ngx_http_v2_module.html) support in secure connections diff --git a/controllers/nginx/nginx/config/config.go b/controllers/nginx/nginx/config/config.go index 74e4ed6b6..1597cb9b1 100644 --- a/controllers/nginx/nginx/config/config.go +++ b/controllers/nginx/nginx/config/config.go @@ -42,7 +42,7 @@ const ( // If UseProxyProtocol is enabled defIPCIDR defines the default the IP/network address of your external load balancer defIPCIDR = "0.0.0.0/0" - gzipTypes = "application/atom+xml application/javascript application/json application/rss+xml application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/svg+xml image/x-icon text/css text/plain text/x-component" + gzipTypes = "application/atom+xml application/javascript aplication/x-javascript application/json application/rss+xml application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/svg+xml image/x-icon text/css text/plain text/x-component" // http://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_buffer_size // Sets the size of the buffer used for sending data.