Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

Commit 872550d

Browse files
authored
Merge pull request #37 from SkynetLabs/enable-gzip-for-trustless-basesector
enable gzip for all /trustless/basesector requests
2 parents f5a96fb + 9678728 commit 872550d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

nginx/conf.d/server/server.api

+6
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,12 @@ location ~ "^/file/(([a-zA-Z0-9-_]{46}|[a-z0-9]{55})(/.*)?)$" {
436436
location /skynet/trustless/basesector {
437437
include /etc/nginx/conf.d/include/cors;
438438

439+
# enable gzip for all content types but keep it on default level for minimal cpu strain
440+
# because this endpoint does not set content type based on the actual content so we cannot
441+
# limit it only to text files so files like videos and images will still be processed
442+
gzip_types *;
443+
gzip_comp_level 1;
444+
439445
limit_conn download_conn_limit 100; # ddos protection: max 100 downloads at a time
440446

441447
# default download rate to unlimited

0 commit comments

Comments
 (0)