diff --git a/roles/nginx/tasks/main.yml b/roles/nginx/tasks/main.yml index 463b1e5f01..f3f7b2aa51 100644 --- a/roles/nginx/tasks/main.yml +++ b/roles/nginx/tasks/main.yml @@ -18,7 +18,7 @@ - name: Grab h5bp/server-configs-nginx git: repo="https://github.com/h5bp/server-configs-nginx.git" dest=/etc/nginx/h5bp-server-configs - version=b674df55453988a837e94dc1f71c9a35e8d77528 + version=94b3680c9d13f108d6d62c22cba251b84f795aa8 force=yes - name: Move h5bp configs diff --git a/roles/nginx/templates/nginx.conf.j2 b/roles/nginx/templates/nginx.conf.j2 index 00b3aa7ac3..ab823c8f07 100644 --- a/roles/nginx/templates/nginx.conf.j2 +++ b/roles/nginx/templates/nginx.conf.j2 @@ -51,7 +51,7 @@ http { default_type application/octet-stream; # Update charset_types due to updated mime.types - charset_types text/xml text/plain text/vnd.wap.wml application/x-javascript application/rss+xml text/css application/javascript application/json; + charset_types text/css text/plain text/vnd.wap.wml application/javascript application/json application/rss+xml application/xml; # Format to use in log files log_format main '$remote_addr - $remote_user [$time_local] "$request" ' @@ -105,18 +105,27 @@ http { application/atom+xml application/javascript application/json + application/ld+json + application/manifest+json application/rss+xml + application/vnd.geo+json application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype + image/bmp image/svg+xml image/x-icon + text/cache-manifest text/css text/plain - text/x-component; + text/vcard + text/vnd.rim.location.xloc + text/vtt + text/x-component + text/x-cross-domain-policy; # text/html is always compressed by HttpGzipModule # This should be turned on if you are going to have pre-compressed copies (.gz) of