update 优化 nginx开启静态资源压缩 增加静态文件传输效率
This commit is contained in:
parent
3c57c0e7f9
commit
78abb617ce
@ -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" '
|
||||||
|
Loading…
x
Reference in New Issue
Block a user