I have this in Nginx configuration files
gzip_types text/plain text/html text/css application/json application/x-javascript text/xml application/xml applicat
For the option gzip_types, the mime-type text/html is always included by default, so you don't need to specify it explicitly.
gzip_types
text/html