Nginx config file: remove text/html from gzip_types

As stated by https://nginx.org/en/docs/http/ngx_http_gzip_module.html, text/html is always part of the gzip_types. This removes a warning when checking the Nginx configuration files.
This commit is contained in:
Benjamin Bouvier 2019-02-10 21:36:41 +01:00 committed by Rigel Kent
parent 6c32d30212
commit 7eeb6a0ba4

View File

@ -41,7 +41,7 @@ server {
# It might be nice to compress JSON, but leaving that out to protect against potential
# compression+encryption information leak attacks like BREACH.
gzip on;
gzip_types text/css text/html application/javascript;
gzip_types text/css application/javascript;
gzip_vary on;
# Enable HSTS