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:
parent
6adbdcc21f
commit
6a47b9c101
2 changed files with 37 additions and 13 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue