mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-09-24 07:19:46 +08:00
update 优化 nginx开启静态资源压缩 增加静态文件传输效率
This commit is contained in:
@ -14,6 +14,8 @@ http {
|
|||||||
keepalive_timeout 65;
|
keepalive_timeout 65;
|
||||||
# 限制body大小
|
# 限制body大小
|
||||||
client_max_body_size 100m;
|
client_max_body_size 100m;
|
||||||
|
# 开启静态资源压缩
|
||||||
|
gzip_static on;
|
||||||
|
|
||||||
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||||
'$status $body_bytes_sent "$http_referer" '
|
'$status $body_bytes_sent "$http_referer" '
|
||||||
|
Reference in New Issue
Block a user