mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-18 21:48:29 +03:00
enforce gzip for downloads
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user