diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-03-19 20:42:45 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-06-17 13:21:27 +0200 |
commit | fee681a86b8779fa53778ab30955c8adc06b3159 (patch) | |
tree | 59664c54c19523382a9add8c57d61c62dba0e51b /install/nginx.conf.template | |
parent | 7234d8595a792fdcaf5849c2a1e66f8a5f1d96be (diff) | |
download | Ishtar-fee681a86b8779fa53778ab30955c8adc06b3159.tar.bz2 Ishtar-fee681a86b8779fa53778ab30955c8adc06b3159.zip |
Nginx conf: enbale compression by default
Diffstat (limited to 'install/nginx.conf.template')
-rw-r--r-- | install/nginx.conf.template | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/install/nginx.conf.template b/install/nginx.conf.template index cf28553a8..8e6b5e5df 100644 --- a/install/nginx.conf.template +++ b/install/nginx.conf.template @@ -4,6 +4,15 @@ server { root #INSTALL_PATH#; access_log /var/log/django/#APP_NAME#-access.log; error_log /var/log/django/#APP_NAME#-error.log; + + gzip on; + gzip_disable "msie6"; + gzip_comp_level 6; + gzip_min_length 1100; + gzip_buffers 16 8k; + gzip_proxied any; + gzip_types text/plain text/css text/js text/xml text/javascript application/javascript application/x-javascript application/json application/xml application/rss+xml image/svg+xml; + # if you change client_max_body_size do not forget to change it also # to your corresponding local_settings.py file client_max_body_size #MAX_UPLOAD_SIZE#M; |