Skip to content

Commit 918f390

Browse files
authored
Merge pull request #32 from erseco/patch-2
Enable gzip compression on nginx
2 parents 7766064 + 365f521 commit 918f390

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

config/nginx.conf

+7-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,13 @@ http {
8282
fastcgi_pass 127.0.0.1:9000;
8383
}
8484
}
85-
85+
86+
gzip on;
87+
gzip_proxied any;
88+
gzip_types text/plain application/xml text/css text/js text/xml application/x-javascript text/javascript application/json application/xml+rss;
89+
gzip_vary on;
90+
gzip_disable "msie6";
91+
8692
# Include other server configs
8793
include /etc/nginx/conf.d/*.conf;
8894
}

0 commit comments

Comments
 (0)