summaryrefslogtreecommitdiff
path: root/install/nginx.conf.template
diff options
context:
space:
mode:
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
commit13c31bdcf9e20d1442865598ec1b0774073b885b (patch)
tree59664c54c19523382a9add8c57d61c62dba0e51b /install/nginx.conf.template
parent01ae8944b920f2a8d3204cf8e4cbb4721c7f74b9 (diff)
downloadIshtar-13c31bdcf9e20d1442865598ec1b0774073b885b.tar.bz2
Ishtar-13c31bdcf9e20d1442865598ec1b0774073b885b.zip
Nginx conf: enbale compression by default
Diffstat (limited to 'install/nginx.conf.template')
-rw-r--r--install/nginx.conf.template9
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;