Skip to content
#

zap

Here are 176 public repositories matching this topic...

miming1688
miming1688 commented Nov 27, 2020

在nginx环境下, 网站上的图形或字体加载不了, 显示为方框. 配置问题, fontawesome图标字体库组件在服务器上显示不出来图标的问题.

先看看路径是否加载失败. .ttf 和.woff 文件, 确认路径正确

找到 nginx的配置文件 ,ps -ef | grep nginx

文件名 default_*.conf

加上

location ~* \.(eot|otf|ttf|woff|svg)$ {
        root    /home/web/waimai/; #项目路径, 必须加上, 除非你只有一个项目,默认80端口.
        add_header Access-Control-Allow-Origin *;
}

[https://www.sofineday.com], golang项目开发脚手架,集成最佳实践(gin+gorm+go-redis+mongo+cors+jwt+json日志库zap(支持日志收集到kafka或mongo)+消息队列kafka+微信支付宝支付gopay+api加密+api反向代理+go modules依赖管理+headless爬虫chromedp+makefile+二进制压缩+livereload热加载)

  • Updated Oct 30, 2020
  • Go

Improve this page

Add a description, image, and links to the zap topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the zap topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.