Permalink
Browse files

perf(nginx): Turn on gzip by default

  • Loading branch information...
ewinslow committed Aug 5, 2015
1 parent 9eac5aa commit 49f776d3c3764fed67c21e7121736b27aaa126d4
Showing with 17 additions and 0 deletions.
  1. +17 −0 install/config/nginx.dist
View
@@ -23,6 +23,23 @@ server {
# Server root, replace it with your elgg installation location
root /var/www/$server_name;
index index.php index.html index.htm;
gzip on;
gzip_types
# text/html is always compressed by HttpGzipModule
text/css
text/javascript
text/xml
text/plain
text/x-component
application/javascript
application/json
application/xml
application/rss+xml
font/truetype
font/opentype
application/vnd.ms-fontobject
image/svg+xml;
# Server logs, replace it with your project names
error_log /var/log/nginx/$server_name.error.log error;

0 comments on commit 49f776d

Please sign in to comment.