This commit is contained in:
Dallas Lu 2026-06-09 14:41:15 +08:00
parent c50569d73e
commit a624163120
No known key found for this signature in database
27 changed files with 215 additions and 6 deletions

View file

@ -1,6 +1,9 @@
# Enable gzip for common text-based responses.
gzip on;
gzip_vary on;
# Keep the default compression level moderate so the CPU cost stays predictable
# on small VPS instances.
gzip_comp_level 4;
gzip_min_length 256;
@ -27,3 +30,6 @@ gzip_types
text/plain
text/xml
text/vtt;
# Do not list text/html here. nginx already compresses it implicitly, and
# repeating it suggests callers need to keep the two lists in sync.