Created
January 27, 2013 05:01
-
-
Save DrMartiner/4646463 to your computer and use it in GitHub Desktop.
Gzip JSON response at location
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
# ... | |
location /api/ { | |
uwsgi_pass unix:///var/run/uwsgi/app/project/socket; | |
include uwsgi_params; | |
uwsgi_buffers 8 128k; | |
client_max_body_size 10M; | |
gzip on; | |
gzip_comp_level 8; | |
gzip_min_length 1000; | |
gzip_types text/plain application/json; | |
gzip_proxied expired no-cache no-store private auth; | |
} | |
location / { | |
# ... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment