[nginx] gzip 압축 설정 샘플

By | 2월 9, 2023

nginx.conf

http {

    ...

    gzip  on;
    gzip_comp_level 6;
    gzip_min_length 5120;
    gzip_buffers 16 8k;
    gzip_proxied any;
    gzip_types
        text/plain
        text/css
        text/js
        text/xml
        text/javascript
        application/javascript
        application/x-javascript
        application/json
        application/xml
        application/rss+xml
        image/svg+xml;

    ...

}


참고

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments