Nginx开启Gzip兼容多层反代
使用docker部署前端时,如果使用了静态资源压缩,则需要在nginx的配置中开启gzip: server { listen 80; server_name localhost; gzip on; gzip_static on; # 需要http_gzip_static_module 模块 gzip_min_length 1k; gzip_comp_level 4; gzip_proxied any; gzip_types text/plain
使用docker部署前端时,如果使用了静态资源压缩,则需要在nginx的配置中开启gzip: server { listen 80; server_name localhost; gzip on; gzip_static on; # 需要http_gzip_static_module 模块 gzip_min_length 1k; gzip_comp_level 4; gzip_proxied any; gzip_types text/plain