diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 3204402..4f85aed 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -17,6 +17,10 @@ http { include /etc/nginx/mime.types; include /etc/nginx/proxy.conf; include /etc/nginx/fastcgi.conf; + ## Custom MIME definition + types { + text/csv csv; + } upstream backend_GET { least_conn; @@ -124,7 +128,8 @@ http { location /download/ { access_log /etc/nginx/logs/download.log no_ip; gzip on; - gzip_types text/plain application/json; + gzip_types text/csv; + gzip_comp_level 1; alias /home/sbadmin/sponsor/docker/database-export/; #return 307 https://cdnsponsor.ajay.app$request_uri; }