Enable gzip compression for bulk_packets endpoint

Reduces payload size for large packet downloads, improving performance
on slow network connections.

Co-Authored-By: Warp <agent@warp.dev>
This commit is contained in:
dmduran12
2026-02-03 11:35:02 -08:00
parent 22c6521fd6
commit d28a966e2e

View File

@@ -299,6 +299,12 @@ class HTTPStatsServer:
"/api": {
"tools.require_auth.on": True,
},
# Enable gzip for bulk packet downloads
"/api/bulk_packets": {
"tools.gzip.on": True,
"tools.gzip.mime_types": ["application/json"],
"tools.gzip.compress_level": 6,
},
# Public documentation endpoints (no auth required)
"/api/openapi": {
"tools.require_auth.on": False,