Merge pull request #377 from mchangrh/nginx-gzip

Fix NGINX mime type
This commit is contained in:
Ajay Ramachandran
2021-10-26 20:52:29 -04:00
committed by GitHub

View File

@@ -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;
}