mirror of
https://github.com/pyMC-dev/pyMC_Repeater.git
synced 2026-10-31 04:01:59 +01:00
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:
1 parent
22c6521fd6
commit
d28a966e2e
1 file changed
+6
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user