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

@ -7,23 +7,47 @@ include /usr/share/nginx/modules/*.conf;
events {
worker_connections 1024;
worker_connections 1024;
}
http {
access_log /var/log/nginx/access.log;
access_log /var/log/nginx/access.log;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
server_tokens off;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
server_tokens off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
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/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
include /etc/nginx/mime.types;
default_type application/octet-stream;
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}

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'