Commit a937e181 authored by Yuanle Song's avatar Yuanle Song
Browse files

v0.5.5 enable gzip in nginx site file by default.

parent 923edd57
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
(defproject python/lein-template "0.5.4"
(defproject python/lein-template "0.5.5"
  :description "lein template for a python project"
  :repositories [["snapshots"
                  {:url "http://devserv.game.yy.com/nexus/content/repositories/snapshots"
+8 −0
Original line number Diff line number Diff line
@@ -17,6 +17,14 @@ server {
        root /usr/local/nginx/html;
    }

    gzip on;
    gzip_disable "msie6";
    # text/html is built-in.
    gzip_types text/plain application/xml text/xml application/x-rss+xml application/xhtml+xml text/css application/javascript application/x-javascript application/json;
    gzip_comp_level 3;
    gzip_min_length 1400;
    gzip_vary on;

    # allow 127.0.0.1;
    # allow 113.106.251.80/29;
    # deny all;
+8 −0
Original line number Diff line number Diff line
@@ -27,6 +27,14 @@ server {

    root /var/www;

    gzip on;
    gzip_disable "msie6";
    # text/html is built-in.
    gzip_types text/plain application/xml text/xml application/x-rss+xml application/xhtml+xml text/css application/javascript application/x-javascript application/json;
    gzip_comp_level 3;
    gzip_min_length 1400;
    gzip_vary on;

    # allow 127.0.0.1;
    # allow 113.106.251.80/29;
    # deny all;