# nginx 添加 Content-Type 启用 Cloudflare 压缩

- Link: https://yjyj.net/learn/centos/6092.html
- Published: 2019-11-26T15:36:10+08:00
- Author: 小 虾

小弟使用的是宝塔, 找到宝塔的 nginx 配置文件路径如下:

    ```decode:true
    /www/server/nginx/conf
    ```

修改:

    ```decode:true
    mime.types
    ```

这个文件, 添加

    ```decode:true
        application/x-font-woff               woff;
        application/x-font-opentype           otf;
        application/x-font-ttf                ttf;
    ```

📚 【[CentOS 学习](https://yjyj.net/category/learn/centos)】专栏延伸阅读与热门精选（
[全站文章归档](https://yjyj.net/archive)）：

 * [GCP 好好玩～](https://yjyj.net/learn/centos/6016.html)
 * [ec2-enable-epel](https://yjyj.net/learn/centos/5974.html)
 * [AWS EC2直接使用密码登录系统](https://yjyj.net/learn/centos/6155.html)
 * [国内服务器的 GitHub hosts](https://yjyj.net/learn/centos/6157.html)
 * 热门必读[升级一下iptables](https://yjyj.net/learn/centos/3208.html)
 * 热门必读[京东云路由器雅典娜 AX6600 折腾记](https://yjyj.net/learn/7810.html)
