From a05c8cc3ead8db8aef11f9822e36d809e021f8ab Mon Sep 17 00:00:00 2001 From: dami Date: Sun, 5 Apr 2026 15:12:45 +0800 Subject: [PATCH] Update __init__.py --- web/admin/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/admin/__init__.py b/web/admin/__init__.py index 8993de6b0..9a188c02b 100644 --- a/web/admin/__init__.py +++ b/web/admin/__init__.py @@ -48,6 +48,8 @@ app = Flask(__name__, template_folder='templates/default') # curl --compressed -I "http://127.0.0.1:44010/" -H "Accept-Encoding: zstd" --write-out "%{json}" app.config["COMPRESS_ALGORITHM"] = ["zstd", "br", "gzip", "deflate"] +app.config["COMPRESS_LEVEL"] = 9 # 最高压缩级别 +app.config["COMPRESS_MIN_SIZE"] = 500 # 最小压缩大小 Compress(app) # 缓存配置