1
0
Fork 0
mirror of https://github.com/DO1JLR/ansible_role_nginx.git synced 2024-08-16 16:19:48 +02:00

adding gzip to nginx

This commit is contained in:
L3D 2021-10-04 22:09:39 +02:00
parent 6adbdcc21f
commit 6a47b9c101
Signed by: l3d
GPG key ID: CD08445BFF4313D1
2 changed files with 37 additions and 13 deletions

View file

@ -21,6 +21,30 @@ http {
types_hash_max_size 2048;
server_tokens off;
gzip on;
gzip_min_length 256;
gzip_vary: on;
gzip_types
application/atom+xml
application/geo+json
application/javascript
application/x-javascript
application/json
application/ld+json
application/manifest+json
application/rdf+xml
application/rss+xml
application/xhtml+xml
application/xml
font/eot
font/otf
font/ttf
image/svg+xml
text/css
text/javascript
text/plain
text/xml;
include /etc/nginx/mime.types;
default_type application/octet-stream;

View file

@ -1,3 +1,3 @@
---
playbook_version_number: 23 # should be int
playbook_version_number: 24 # should be int
playbook_version_path: 'do1jlr.nginx_roles-ansible.version'