The Wayback Machine - https://web.archive.org/web/20201202190923/https://github.com/topics/gin
Skip to content
#

Gin

gin logo

Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.

Here are 949 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 *;
}

Created by Manu MA, Javier Provecho Fernandez

Released June 30, 2014

Latest release 7 months ago

Repository
gin-gonic/gin
Website
gin-gonic.com

Related Topics

framework go router
You can’t perform that action at this time.