update 优化 nginx开启静态资源压缩 增加静态文件传输效率

This commit is contained in:
疯狂的狮子Li 2025-02-11 16:03:14 +08:00
parent 3c57c0e7f9
commit 78abb617ce

View File

@ -14,6 +14,8 @@ http {
keepalive_timeout 65;
# 限制body大小
client_max_body_size 100m;
# 开启静态资源压缩
gzip_static on;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '