Lucent's Blog

Lucent's Blog

当时明月在 曾照彩云归


人生不相见,动如参与商。


Nginx

  1. Nginx开启Gzip兼容多层反代

    Nginx开启Gzip兼容多层反代

    2 min read
    Nginx

    使用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